Upstream version 5.34.98.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / dom / childnode-item-after-itemname.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <p>This tests accessing the first element in childNodes after accessing the second element by its id.
5 WebKit should retrieve each element correctly, and you should see 2 1 below:</p>
6 <span id="item"></span><span id="tests" style="display: none;">1<span id="item">2</span></span>
7 <script>
8
9 if (window.testRunner)
10     testRunner.dumpAsText();
11
12 var tests = document.querySelector('#tests');
13 document.writeln(tests.childNodes['item'].textContent);
14 document.writeln(tests.childNodes[0].textContent);
15
16 </script>
17 </body>
18 </html>