Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / xpath / xpath-template-element.html
blob3486400a6e6a10bd156d9ba39076e86bd7936525
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <p>This tests that XPath expressions do not consider (traverse into) template content</p>
9 <div id=test>
10 <span>A</span>
11 <span>B</span>
12 <template>
13 <span>C</span>
14 <span>D</span>
15 </template>
16 </div>
18 <div id="console"></div>
19 <script>
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");
23 </script>
24 </body>
25 </html>