4 <script src=
"../../resources/js-test.js"></script>
7 <p>This tests that XPath expressions do not consider (traverse into) template content
</p>
18 <div id=
"console"></div>
20 var test
= document
.getElementById('test');
21 var result
= document
.evaluate('count(//span)', test
, null, XPathResult
.NUMBER_TYPE
, null);
22 shouldBe("document.evaluate('count(//span)', test, null, XPathResult.NUMBER_TYPE, null).numberValue", "2");