2 <p>Test for
<a href=
"http://bugs.webkit.org/show_bug.cgi?id=12452">bug
12452</a>:
3 XPath id() function is not supported.
</p>
5 <div id=test1
style=
"display:none">
8 <div id=test2
style=
"display:none">
19 if (window
.testRunner
)
20 testRunner
.dumpAsText();
22 var UNORDERED_NODE_SNAPSHOT_TYPE
= 6;
24 result
= document
.evaluate("id(id(' test1 test2 '))", document
.body
, null, UNORDERED_NODE_SNAPSHOT_TYPE
, null);
26 if (4 == result
.snapshotLength
)
27 document
.write("SUCCESS");
29 document
.write("FAILURE: " + result
.snapshotLength
+ " result nodes (should be 4)");