blob: 191505b48beaefce429d94afbb06c1f557b38b80 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<link rel="help" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#dom-document-dir"/>
<script src="../../resources/js-test.js"></script>
</head>
<body>
<script>
description("Make sure the dir attribute is exposed on non-HTML documents.");
var xmlDocument = document.implementation.createDocument("", "", null);
shouldBe("xmlDocument.__proto__", "XMLDocument.prototype");
shouldBe("xmlDocument.__proto__.__proto__", "Document.prototype");
shouldBeEqualToString("xmlDocument.dir", "");
shouldNotThrow("xmlDocument.dir = 'ltr'");
shouldBeEqualToString("xmlDocument.dir", "");
</script>
</body>
</html>