3 <p>Test for
<a href=
"http://bugs.webkit.org/show_bug.cgi?id=12807">bug
12807</a>:
4 XPath incorrectly converts NaN to boolean.
</p>
10 if (window
.testRunner
)
11 testRunner
.dumpAsText();
15 result
= document
.evaluate("//div[number(substring-after(@id,'r_')) or false()]", document
, null, XPathResult
.UNORDERED_NODE_SNAPSHOT_TYPE
, null);
17 if (1 == result
.snapshotLength
)
18 document
.write("SUCCESS");
20 document
.write("FAILURE: " + result
.snapshotLength
+ " result nodes (should be 1)");
22 document
.write("FAILURE: " + ex
);