WebCore: Fix for https://bugs.webkit.org/show_bug.cgi?id=29703
[WebKit.git] / LayoutTests / fast / dom / SelectorAPI / caseTag.html
1 <html>
2 <head>
3 <link rel="stylesheet" href="../../js/resources/js-test-style.css">
4 <script src="../../js/resources/js-test-pre.js"></script>
5 </head>
6 <body>
7     <p id="description"></p>
8     <div id="console"></div>
9     <div style="display: none">
10     <span id="lower1">lower</span><br>
11     <P id="UPPER1">UPPER</P><br>
12     </div>
13     <script>
14         shouldBe("document.querySelector('div SPAN').textContent", "'lower'");
15         shouldBe("document.querySelector('div p').textContent", "'UPPER'");
16
17         shouldBeTrue("document.getElementById('lower1').webkitMatchesSelector('div SPAN')");
18         shouldBeTrue("document.getElementById('UPPER1').webkitMatchesSelector('div p')");
19
20         var successfullyParsed = true;
21     </script>
22     <script src="../../js/resources/js-test-post.js"></script>
23 </body>
24 </html>