| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <meta charset=utf-8> | 2 <meta charset=utf-8> |
| 3 <title>Attributes tests</title> | 3 <title>Attributes tests</title> |
| 4 <link rel=help href="https://dom.spec.whatwg.org/#attr"> | 4 <link rel=help href="https://dom.spec.whatwg.org/#attr"> |
| 5 <link rel=help href="https://dom.spec.whatwg.org/#dom-element-setattribute"> | 5 <link rel=help href="https://dom.spec.whatwg.org/#dom-element-setattribute"> |
| 6 <link rel=help href="https://dom.spec.whatwg.org/#dom-element-setattributens"> | 6 <link rel=help href="https://dom.spec.whatwg.org/#dom-element-setattributens"> |
| 7 <script src="../../../../resources/testharness.js"></script> | 7 <script src="/resources/testharness.js"></script> |
| 8 <script src="../../../../resources/testharnessreport.js"></script> | 8 <script src="/resources/testharnessreport.js"></script> |
| 9 <script src="attributes.js"></script> | 9 <script src="attributes.js"></script> |
| 10 <script src="productions.js"></script> | 10 <script src="productions.js"></script> |
| 11 <div id="log"></div> | 11 <div id="log"></div> |
| 12 <span id="test1"></span> | 12 <span id="test1"></span> |
| 13 <span class="&<>foo"></span> | 13 <span class="&<>foo"></span> |
| 14 <span id="test2"> | 14 <span id="test2"> |
| 15 <span ~=""></span> | 15 <span ~=""></span> |
| 16 <span ~></span> | 16 <span ~></span> |
| 17 <span></span> | 17 <span></span> |
| 18 </span> | 18 </span> |
| (...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 720 el.setAttributeNS("", "I", ""); | 720 el.setAttributeNS("", "I", ""); |
| 721 el.setAttributeNS("", "j", ""); | 721 el.setAttributeNS("", "j", ""); |
| 722 assert_array_equals(Object.getOwnPropertyNames(el.attributes), | 722 assert_array_equals(Object.getOwnPropertyNames(el.attributes), |
| 723 ["0", "1", "2", "3", "4", "5", "A:B", "c:D", "e:F", "g:h",
"I", "j"]) | 723 ["0", "1", "2", "3", "4", "5", "A:B", "c:D", "e:F", "g:h",
"I", "j"]) |
| 724 for (var propName of Object.getOwnPropertyNames(el.attributes)) { | 724 for (var propName of Object.getOwnPropertyNames(el.attributes)) { |
| 725 assert_true(el.attributes[propName] instanceof Attr, | 725 assert_true(el.attributes[propName] instanceof Attr, |
| 726 "el.attributes has an Attr for property name " + propName); | 726 "el.attributes has an Attr for property name " + propName); |
| 727 } | 727 } |
| 728 }, "Own property names should include all qualified names for an HTML element in
a non-HTML document"); | 728 }, "Own property names should include all qualified names for an HTML element in
a non-HTML document"); |
| 729 </script> | 729 </script> |
| OLD | NEW |