| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <meta charset="utf-8"> | 2 <meta charset="utf-8"> |
| 3 <title>DOMTokenList coverage for attributes</title> | 3 <title>DOMTokenList coverage for attributes</title> |
| 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 <div id=log></div> | 6 <div id=log></div> |
| 7 <script> | 7 <script> |
| 8 "use strict"; | 8 "use strict"; |
| 9 | 9 |
| 10 var pairs = [ | 10 var pairs = [ |
| 11 // Defined in DOM | 11 // Defined in DOM |
| 12 {attr: "classList", sup: ["anyElement"]}, | 12 {attr: "classList", sup: ["anyElement"]}, |
| 13 // Defined in HTML | 13 // Defined in HTML |
| 14 {attr: "dropzone", sup: ["anyHTMLElement"]}, | 14 {attr: "dropzone", sup: ["anyHTMLElement"]}, |
| 15 {attr: "headers", sup: ["td", "th"]}, | |
| 16 {attr: "htmlFor", sup: ["output"]}, | 15 {attr: "htmlFor", sup: ["output"]}, |
| 17 {attr: "ping", sup: ["a", "area"]}, | |
| 18 {attr: "relList", sup: ["a", "area", "link"]}, | 16 {attr: "relList", sup: ["a", "area", "link"]}, |
| 19 {attr: "sandbox", sup: ["iframe"]}, | 17 {attr: "sandbox", sup: ["iframe"]}, |
| 20 {attr: "sizes", sup: ["link"]} | 18 {attr: "sizes", sup: ["link"]} |
| 21 ]; | 19 ]; |
| 22 var namespaces = [ | 20 var namespaces = [ |
| 23 "http://www.w3.org/1999/xhtml", | 21 "http://www.w3.org/1999/xhtml", |
| 24 "http://www.w3.org/2000/svg", | 22 "http://www.w3.org/2000/svg", |
| 25 "http://www.w3.org/1998/Math/MathML", | 23 "http://www.w3.org/1998/Math/MathML", |
| 26 "http://example.com/", | 24 "http://example.com/", |
| 27 "" | 25 "" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 44 else { | 42 else { |
| 45 test(function() { | 43 test(function() { |
| 46 assert_equals(new_el[pair.attr], undefined); | 44 assert_equals(new_el[pair.attr], undefined); |
| 47 }, new_el.localName + "." + pair.attr + " in " + new_el.namespaceURI + "
namespace should be undefined."); | 45 }, new_el.localName + "." + pair.attr + " in " + new_el.namespaceURI + "
namespace should be undefined."); |
| 48 } | 46 } |
| 49 }); | 47 }); |
| 50 }); | 48 }); |
| 51 }); | 49 }); |
| 52 | 50 |
| 53 </script> | 51 </script> |
| OLD | NEW |