| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <link rel="help" href="http://www.w3.org/TR/2012/WD-dom-20121206/#interface-domi
mplementation"> | 4 <link rel="help" href="http://www.w3.org/TR/2012/WD-dom-20121206/#interface-domi
mplementation"> |
| 5 <script src="../js/resources/js-test-pre.js"></script> | 5 <script src="../js/resources/js-test-pre.js"></script> |
| 6 </head> | 6 </head> |
| 7 <body> | 7 <body> |
| 8 <script> | 8 <script> |
| 9 description("Checks that the DOMImplementation api arguments are correctly valid
ated") | 9 description("Checks that the DOMImplementation api arguments are correctly valid
ated") |
| 10 | 10 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 validateDocument(doc, 'XMLDocument', "namespace", "qualifiedName", null); | 62 validateDocument(doc, 'XMLDocument', "namespace", "qualifiedName", null); |
| 63 shouldNotThrow('doc = document.implementation.createDocument("namespace", "quali
fiedName", docType)'); | 63 shouldNotThrow('doc = document.implementation.createDocument("namespace", "quali
fiedName", docType)'); |
| 64 validateDocument(doc, 'XMLDocument', "namespace", "qualifiedName", docType); | 64 validateDocument(doc, 'XMLDocument', "namespace", "qualifiedName", docType); |
| 65 | 65 |
| 66 debug('\nDocument createHTMLDocument(optional DOMString title);'); | 66 debug('\nDocument createHTMLDocument(optional DOMString title);'); |
| 67 shouldNotThrow('doc = document.implementation.createHTMLDocument()'); | 67 shouldNotThrow('doc = document.implementation.createHTMLDocument()'); |
| 68 validateDocument(doc, 'HTMLDocument', "http://www.w3.org/1999/xhtml", "HTML", do
c.doctype); | 68 validateDocument(doc, 'HTMLDocument', "http://www.w3.org/1999/xhtml", "HTML", do
c.doctype); |
| 69 shouldNotThrow('doc = document.implementation.createHTMLDocument("title")'); | 69 shouldNotThrow('doc = document.implementation.createHTMLDocument("title")'); |
| 70 validateDocument(doc, 'HTMLDocument', "http://www.w3.org/1999/xhtml", "HTML", do
c.doctype); | 70 validateDocument(doc, 'HTMLDocument', "http://www.w3.org/1999/xhtml", "HTML", do
c.doctype); |
| 71 </script> | 71 </script> |
| 72 <script src="../js/resources/js-test-post.js"></script> | |
| 73 </body> | 72 </body> |
| 74 </html> | 73 </html> |
| OLD | NEW |