dom refactoring, test dom.ancestor