7e48d60ee34411c5284782356f883abe4404039b
[WebKit.git] / LayoutTests / fast / dom / SelectorAPI / caseID-almost-strict.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html>
3 <head>
4 <link rel="stylesheet" href="../../js/resources/js-test-style.css">
5 <script src="../../js/resources/js-test-pre.js"></script>
6 </head>
7 <body>
8     <p id="description"></p>
9     <div id="console"></div>
10     <div style="display: none">
11     <span id="lower1">lower 1</span><br>
12     <span id="lower2">lower 2</span><br>
13     <span id="UPPER1">UPPER 1</span><br>
14     <span id="UPPER2">UPPER 2</span><br>
15     </div>
16     <script>
17         shouldBe("document.querySelector('#lower1').textContent", "'lower 1'");
18         shouldBeNull("document.querySelector('#LOWER2')");
19         shouldBe("document.querySelector('#UPPER1').textContent", "'UPPER 1'");
20         shouldBeNull("document.querySelector('#upper2')");
21
22         var successfullyParsed = true;
23     </script>
24     <script src="../../js/resources/js-test-post.js"></script>
25 </body>
26 </html>