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