OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <script src="../../js/resources/js-test-pre.js"></script> | |
5 </head> | |
6 <body> | |
7 <p>This tests that document.getItems NodeList must be in source tree order.</p> | |
8 | |
9 <div itemscope itemtype="http://example.com/foo" id="one"></div> | |
10 <div itemscope itemtype="http://example.com/bar" id="two"></div> | |
11 <div itemscope itemtype="http://example.com/foo" id="three"> | |
12 <div itemscope itemtype="data:text/plain," id="four"></div> | |
13 </div> | |
14 <div itemscope id="five"></div> | |
15 <div id="console"></div> | |
16 <script> | |
17 var nodeList = document.getItems(); | |
18 | |
19 shouldBe("nodeList[0].id", "'one'"); | |
20 shouldBe("nodeList[1].id", "'two'"); | |
21 shouldBe("nodeList[2].id", "'three'"); | |
22 shouldBe("nodeList[3].id", "'four'"); | |
23 </script> | |
24 <script src="../../js/resources/js-test-post.js"></script> | |
25 </body> | |
26 </html> | |
OLD | NEW |