| 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 <p>This test ensures that document.getItems() returns nodes that match all the t
ypes specified in the method's argument.</p> | |
| 9 | |
| 10 <div itemscope itemtype="http://example.com/foo http://example.com/bar" id="one"
></div> | |
| 11 <div itemscope itemtype="http://example.com/foo" id="two"></div> | |
| 12 | |
| 13 <script> | |
| 14 var one = document.getElementById('one'); | |
| 15 var two = document.getElementById('two'); | |
| 16 | |
| 17 runTest(document.getItems('http://example.com/foo http://example.com/bar'), [one
], "document.getItems() with multiple itemtypes"); | |
| 18 runTest(document.getItems('http://example.com/bar http://example.com/foo'), [one
], "document.getItems() with multiple itemtypes"); | |
| 19 runTest(document.getItems('http://example.com/foo'), [one, two], "document.getIt
ems() with 'http://example.com/foo' itemtype in the aurgument"); | |
| 20 runTest(document.getItems('http://example.com/bar'), [one], "document.getItems()
with 'http://example.com/bar' itemtype in the aurgument"); | |
| 21 | |
| 22 </script> | |
| 23 <script src="../../js/resources/js-test-post.js"></script> | |
| 24 </body> | |
| 25 </html> | |
| OLD | NEW |