OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <meta charset=utf-8> | 2 <meta charset=utf-8> |
3 <link rel=help href=https://dom.spec.whatwg.org/#interface-htmlcollection> | 3 <link rel=help href=https://dom.spec.whatwg.org/#interface-htmlcollection> |
4 <script src=../../../../resources/testharness.js></script> | 4 <script src=../../../../resources/testharness.js></script> |
5 <script src=../../../../resources/testharnessreport.js></script> | 5 <script src=../../../../resources/testharnessreport.js></script> |
6 | 6 |
7 <div id=log></div> | 7 <div id=log></div> |
8 | 8 |
9 <!-- with no attribute --> | 9 <!-- with no attribute --> |
10 <span></span> | 10 <span></span> |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 var elem = document.createElement('foo'); | 45 var elem = document.createElement('foo'); |
46 this.add_cleanup(function () {elem.remove();}); | 46 this.add_cleanup(function () {elem.remove();}); |
47 document.body.appendChild(elem); | 47 document.body.appendChild(elem); |
48 | 48 |
49 var elements = document.getElementsByTagName("foo"); | 49 var elements = document.getElementsByTagName("foo"); |
50 elements.someProperty = "some value"; | 50 elements.someProperty = "some value"; |
51 | 51 |
52 assert_array_equals(Object.getOwnPropertyNames(elements), ['0', 'someProperty'
]); | 52 assert_array_equals(Object.getOwnPropertyNames(elements), ['0', 'someProperty'
]); |
53 }, 'Object.getOwnPropertyNames on HTMLCollection with expando object'); | 53 }, 'Object.getOwnPropertyNames on HTMLCollection with expando object'); |
54 </script> | 54 </script> |
OLD | NEW |