| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <meta charset=utf-8> | 2 <meta charset=utf-8> |
| 3 <title>Document.createAttribute</title> | 3 <title>Document.createAttribute</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 <script src=attributes.js></script> | 6 <script src=attributes.js></script> |
| 7 <script src=productions.js></script> | 7 <script src=productions.js></script> |
| 8 <div id=log> | 8 <div id=log> |
| 9 <script> | 9 <script> |
| 10 var xml_document; | 10 var xml_document; |
| 11 setup(function() { | 11 setup(function() { |
| 12 xml_document = document.implementation.createDocument(null, null, null); | 12 xml_document = document.implementation.createDocument(null, null, null); |
| 13 }); | 13 }); |
| 14 | 14 |
| 15 invalid_names.forEach(function(name) { | 15 invalid_names.forEach(function(name) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 34 assert_equals(attribute.ownerElement, null); | 34 assert_equals(attribute.ownerElement, null); |
| 35 }, "HTML document.createAttribute(" + format_value(name) + ")"); | 35 }, "HTML document.createAttribute(" + format_value(name) + ")"); |
| 36 | 36 |
| 37 test(function() { | 37 test(function() { |
| 38 var attribute = xml_document.createAttribute(name); | 38 var attribute = xml_document.createAttribute(name); |
| 39 attr_is(attribute, "", String(name), null, null, String(name)); | 39 attr_is(attribute, "", String(name), null, null, String(name)); |
| 40 assert_equals(attribute.ownerElement, null); | 40 assert_equals(attribute.ownerElement, null); |
| 41 }, "XML document.createAttribute(" + format_value(name) + ")"); | 41 }, "XML document.createAttribute(" + format_value(name) + ")"); |
| 42 }); | 42 }); |
| 43 </script> | 43 </script> |
| OLD | NEW |