Revision de23472d66fb6b1bff6b56586c5299c543bd71f5 authored by Emilio Cobos Álvarez on 11 April 2018, 12:15:02 UTC, committed by Emilio Cobos Álvarez on 13 April 2018, 20:20:17 UTC
This tests the resolution in https://github.com/w3c/csswg-drafts/issues/2149.
1 parent cb845c5
document.tentative.html
<!doctype html>
<title>XPath parent of documentElement</title>
<script src='/resources/testharness.js'></script>
<script src='/resources/testharnessreport.js'></script>
<body>
<script>
test(function() {
var result = document.evaluate("..", // expression
document.documentElement, // context node
null, // resolver
XPathResult.ANY_TYPE, // type
null); // result
var matched = [];
var cur;
while ((cur = result.iterateNext()) !== null) {
matched.push(cur);
}
assert_array_equals(matched, [document]);
});
</script>
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...