OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../js/resources/js-test-pre.js"></script> | 4 <script src="../js/resources/js-test-pre.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <p>This tests XPath expressions on detached document fragments and nodes. | 7 <p>This tests XPath expressions on detached document fragments and nodes. |
8 <br/>See https://bugs.webkit.org/show_bug.cgi?id=36427 | 8 <br/>See https://bugs.webkit.org/show_bug.cgi?id=36427 |
9 <div id="console"></div> | 9 <div id="console"></div> |
10 | 10 |
(...skipping 19 matching lines...) Expand all Loading... |
30 result = document.evaluate("count(/html)", | 30 result = document.evaluate("count(/html)", |
31 ele, null, XPathResult.NUMBER_TYPE, null); | 31 ele, null, XPathResult.NUMBER_TYPE, null); |
32 shouldBe("result.numberValue", "0"); | 32 shouldBe("result.numberValue", "0"); |
33 result = document.evaluate("/* | *", | 33 result = document.evaluate("/* | *", |
34 ele, null, XPathResult.NUMBER_TYPE, null); | 34 ele, null, XPathResult.NUMBER_TYPE, null); |
35 shouldBe("result.numberValue", "NaN"); | 35 shouldBe("result.numberValue", "NaN"); |
36 </script> | 36 </script> |
37 <script src="../js/resources/js-test-post.js"></script> | 37 <script src="../js/resources/js-test-post.js"></script> |
38 </body> | 38 </body> |
39 </html> | 39 </html> |
OLD | NEW |