OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <title>HTMLCollection edge cases</title> | 2 <title>HTMLCollection edge cases</title> |
3 <script src="../../../../resources/testharness.js"></script> | 3 <script src="../../../../resources/testharness.js"></script> |
4 <script src="../../../../resources/testharnessreport.js"></script> | 4 <script src="../../../../resources/testharnessreport.js"></script> |
5 <div id="log"></div> | 5 <div id="log"></div> |
6 <div id="test"><img><img id=foo><img id=foo><img name="bar"></div> | 6 <div id="test"><img><img id=foo><img id=foo><img name="bar"></div> |
7 <script> | 7 <script> |
8 setup(function() { | 8 setup(function() { |
9 // Add some non-HTML elements in there to test what happens with those. | 9 // Add some non-HTML elements in there to test what happens with those. |
10 var container = document.getElementById("test"); | 10 var container = document.getElementById("test"); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 | 49 |
50 var unexposedNames = ['qux']; | 50 var unexposedNames = ['qux']; |
51 for (var unexposedName of unexposedNames) { | 51 for (var unexposedName of unexposedNames) { |
52 assert_false(unexposedName in list); | 52 assert_false(unexposedName in list); |
53 assert_false(list.hasOwnProperty(unexposedName)); | 53 assert_false(list.hasOwnProperty(unexposedName)); |
54 assert_equals(list[unexposedName], undefined); | 54 assert_equals(list[unexposedName], undefined); |
55 assert_equals(list.namedItem(unexposedName), null); | 55 assert_equals(list.namedItem(unexposedName), null); |
56 } | 56 } |
57 }); | 57 }); |
58 </script> | 58 </script> |
OLD | NEW |