OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <script src="../../js/resources/js-test-pre.js"></script> | |
5 <script src="resources/microdata-common.js"></script> | |
6 </head> | |
7 <body> | |
8 <div itemscope itemtype="http://example.com/foo http://example.com/bar" id="one"
></div> | |
9 <div itemscope itemtype="http://example.com/foo" id="two"> | |
10 <div itemscope itemtype="http://example.com/foo data:text/plain" id="three"></di
v> | |
11 </div> | |
12 <div itemscope id="four"></div> | |
13 <script> | |
14 description("This test verifies that document.getItems() returns all top-level m
icrodata items in the document when no tokens specified in the argement.") | |
15 var one = document.getElementById('one'); | |
16 var two = document.getElementById('two'); | |
17 var three = document.getElementById('three'); | |
18 var four = document.getElementById('four'); | |
19 | |
20 runTest(document.getItems(''), [one, two, three, four], "document.getItems('') w
ith empty string as argument"); | |
21 runTest(document.getItems(' '), [one, two, three, four], "document.getItems('
') string with spaces as argument"); | |
22 </script> | |
23 <script src="../../js/resources/js-test-post.js"></script> | |
24 </body> | |
25 </html> | |
26 | |
OLD | NEW |