3 <div style=
"display:none">123</div>
4 <p>Test for
<a href=
"http://bugs.webkit.org/show_bug.cgi?id=12602">bug
12602</a>:
8 testRunner
.dumpAsText();
11 "//div[string() = '123']"
12 , "//div[normalize-space() = '123']"
13 , "//div[string-length() = 3]"
14 , "//div[number() = 123]"
17 while (test
= tests
.pop()) {
18 var result
= document
.evaluate(test
, document
.documentElement
, null, XPathResult
.ORDERED_NODE_SNAPSHOT_TYPE
, null);
19 if (result
.snapshotLength
== 1)
20 document
.write("<pre>" + test
+ ": SUCCESS</pre>");
22 document
.write("<pre>" + test
+ ": FAILURE. " + result
.snapshotLength
+ " node(s) matched - should be 1</pre>");