OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <meta charset=windows-1252> | 2 <meta charset=windows-1252> |
3 <!-- Using windows-1252 to ensure that DOMImplementation.createHTMLDocument() | 3 <!-- Using windows-1252 to ensure that DOMImplementation.createHTMLDocument() |
4 doesn't inherit utf-8 from the parent document. --> | 4 doesn't inherit utf-8 from the parent document. --> |
5 <title>DOMImplementation.createHTMLDocument</title> | 5 <title>DOMImplementation.createHTMLDocument</title> |
6 <link rel=help href="https://dom.spec.whatwg.org/#dom-domimplementation-createht
mldocument"> | 6 <link rel=help href="https://dom.spec.whatwg.org/#dom-domimplementation-createht
mldocument"> |
7 <link rel=help href="https://dom.spec.whatwg.org/#dom-documenttype-name"> | 7 <link rel=help href="https://dom.spec.whatwg.org/#dom-documenttype-name"> |
8 <link rel=help href="https://dom.spec.whatwg.org/#dom-documenttype-publicid"> | 8 <link rel=help href="https://dom.spec.whatwg.org/#dom-documenttype-publicid"> |
9 <link rel=help href="https://dom.spec.whatwg.org/#dom-documenttype-systemid"> | 9 <link rel=help href="https://dom.spec.whatwg.org/#dom-documenttype-systemid"> |
10 <link rel=help href="https://dom.spec.whatwg.org/#dom-document-documentelement"> | 10 <link rel=help href="https://dom.spec.whatwg.org/#dom-document-documentelement"> |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 }, "createHTMLDocument(): characterSet aliases") | 81 }, "createHTMLDocument(): characterSet aliases") |
82 | 82 |
83 test(function() { | 83 test(function() { |
84 var doc = document.implementation.createHTMLDocument("test"); | 84 var doc = document.implementation.createHTMLDocument("test"); |
85 var a = doc.createElement("a"); | 85 var a = doc.createElement("a"); |
86 // In UTF-8: 0xC3 0xA4 | 86 // In UTF-8: 0xC3 0xA4 |
87 a.href = "http://example.org/?\u00E4"; | 87 a.href = "http://example.org/?\u00E4"; |
88 assert_equals(a.href, "http://example.org/?%C3%A4"); | 88 assert_equals(a.href, "http://example.org/?%C3%A4"); |
89 }, "createHTMLDocument(): URL parsing") | 89 }, "createHTMLDocument(): URL parsing") |
90 </script> | 90 </script> |
OLD | NEW |