| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <link rel="help" href="http://www.whatwg.org/specs/web-apps/current-work/multipa
ge/dom.html#dom-document-scripts"/> | 4 <link rel="help" href="http://www.whatwg.org/specs/web-apps/current-work/multipa
ge/editing.html#making-entire-documents-editable:-the-designmode-idl-attribute"/
> |
| 5 <script src="../../../resources/js-test.js"></script> | 5 <script src="../../../resources/js-test.js"></script> |
| 6 </head> | 6 </head> |
| 7 <body> | 7 <body> |
| 8 <script> | 8 <script> |
| 9 description("Make sure the script attribute is exposed on non-HTML documents."); | 9 description("Make sure the designMode attribute is exposed on non-HTML documents
."); |
| 10 | 10 |
| 11 var xmlDocument = document.implementation.createDocument("", "", null); | 11 var xmlDocument = document.implementation.createDocument("", "", null); |
| 12 shouldBe("xmlDocument.__proto__", "XMLDocument.prototype"); | 12 shouldBe("xmlDocument.__proto__", "XMLDocument.prototype"); |
| 13 shouldBe("xmlDocument.__proto__.__proto__", "Document.prototype"); | 13 shouldBe("xmlDocument.__proto__.__proto__", "Document.prototype"); |
| 14 | 14 |
| 15 shouldBe("xmlDocument.scripts.__proto__", "HTMLCollection.prototype"); | 15 shouldBeEqualToString("xmlDocument.designMode", "off"); |
| 16 shouldBe("xmlDocument.scripts.length", "0"); | 16 shouldNotThrow("xmlDocument.designMode = 'on'"); |
| 17 shouldBeEqualToString("xmlDocument.designMode", "on"); |
| 17 </script> | 18 </script> |
| 18 </body> | 19 </body> |
| 19 </html> | 20 </html> |
| OLD | NEW |