4 <script src=
"../../resources/js-test.js"></script>
8 <p>A test case from https://bugs.webkit.org/show_bug.cgi?id=
84793.
9 <p>Test passes if it doesn't hit ASSERT(parents.size()
>= depth +
1).
10 <div id=
"console"></div>
13 resolver = function (prefix
) {
15 "svg" : "http://www.w3.org/2000/svg",
16 "xhtml" : "http://www.w3.org/1999/xhtml",
18 return ns
[prefix
] || null;
21 var result
= document
.evaluate("/node()/descendant-or-self::svg:* | node()/ancestor-or-self::node()", document
.getElementById("svg").ownerDocument
.importNode(document
.documentElement
), resolver
, XPathResult
.NUMBER_TYPE
, result
);
22 shouldBe("result.numberValue", "NaN");