Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Add tentative test for what ".." on documentElement returns #10055
As far as I can tell, from both DOM Level 3 XPath and XPath 1.0, this is undefined. As far as the XPath data model is concerned, documentElement can have no parent, and DOM Level 3 XPath doesn't address this.
However, at least Chrome/Edge/Firefox/Safari all pass this test, so it seems like something we should test.