| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <meta charset=utf-8> | 2 <meta charset=utf-8> |
| 3 <title>DOMImplementation.createDocument(namespace, qualifiedName, doctype)</titl
e> | 3 <title>DOMImplementation.createDocument(namespace, qualifiedName, doctype)</titl
e> |
| 4 <link rel=help href="https://dom.spec.whatwg.org/#dom-domimplementation-createdo
cument"> | 4 <link rel=help href="https://dom.spec.whatwg.org/#dom-domimplementation-createdo
cument"> |
| 5 <link rel=help href="https://dom.spec.whatwg.org/#dom-document-createelementns"> | 5 <link rel=help href="https://dom.spec.whatwg.org/#dom-document-createelementns"> |
| 6 <link rel=help href="https://dom.spec.whatwg.org/#dom-node-nodetype"> | 6 <link rel=help href="https://dom.spec.whatwg.org/#dom-node-nodetype"> |
| 7 <link rel=help href="https://dom.spec.whatwg.org/#dom-document-documentelement"> | 7 <link rel=help href="https://dom.spec.whatwg.org/#dom-document-documentelement"> |
| 8 <link rel=help href="https://dom.spec.whatwg.org/#dom-document-doctype"> | 8 <link rel=help href="https://dom.spec.whatwg.org/#dom-document-doctype"> |
| 9 <script src="../../../../resources/testharness.js"></script> | 9 <script src="/resources/testharness.js"></script> |
| 10 <script src="../../../../resources/testharnessreport.js"></script> | 10 <script src="/resources/testharnessreport.js"></script> |
| 11 <script src="Document-createElementNS.js"></script> | 11 <script src="Document-createElementNS.js"></script> |
| 12 <div id="log"></div> | 12 <div id="log"></div> |
| 13 <script> | 13 <script> |
| 14 var htmlNamespace = "http://www.w3.org/1999/xhtml" | 14 var htmlNamespace = "http://www.w3.org/1999/xhtml" |
| 15 var svgNamespace = "http://www.w3.org/2000/svg" | 15 var svgNamespace = "http://www.w3.org/2000/svg" |
| 16 var mathMLNamespace = "http://www.w3.org/1998/Math/MathML" | 16 var mathMLNamespace = "http://www.w3.org/1998/Math/MathML" |
| 17 | 17 |
| 18 test(function() { | 18 test(function() { |
| 19 var tests = createElementNS_tests.map(function(t) { | 19 var tests = createElementNS_tests.map(function(t) { |
| 20 return [t[0], t[1], null, t[2]] | 20 return [t[0], t[1], null, t[2]] |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 test(function() { | 146 test(function() { |
| 147 assert_throws(new TypeError(), function() { | 147 assert_throws(new TypeError(), function() { |
| 148 document.implementation.createDocument() | 148 document.implementation.createDocument() |
| 149 }, "createDocument() should throw") | 149 }, "createDocument() should throw") |
| 150 | 150 |
| 151 assert_throws(new TypeError(), function() { | 151 assert_throws(new TypeError(), function() { |
| 152 document.implementation.createDocument('') | 152 document.implementation.createDocument('') |
| 153 }, "createDocument('') should throw") | 153 }, "createDocument('') should throw") |
| 154 }, "createDocument with missing arguments"); | 154 }, "createDocument with missing arguments"); |
| 155 </script> | 155 </script> |
| OLD | NEW |