3 <link rel=
"stylesheet" href=
"../js/resources/js-test-style.css">
5 var headReadDocumentDir
= document
.dir
;
7 var headWriteDocumentDir
= document
.dir
;
11 <div id=
"description"></div>
12 <div id=
"console"></div>
13 <script src=
"../js/resources/js-test-pre.js"></script>
15 description("This tests:<br>"
16 + "Bug 9954 REGRESSION: document.dir should return empty string in <head><br>"
17 + "<a href=\"http://bugzilla.opendarwin.org/show_bug.cgi?id=9954\">http://bugzilla.opendarwin.org/show_bug.cgi?id=9954</a><br>");
19 debug("Read document.dir in head");
20 shouldBe("headReadDocumentDir", "''");
23 debug("Write document.dir in head");
24 shouldBe("headWriteDocumentDir", "''");
27 debug("Read document.dir in body");
28 shouldBe("document.dir", "''");
31 debug("Read document.body.dir in body");
32 shouldBe("document.body.dir", "''");
35 debug("Write document.dir in body");
37 shouldBe("document.dir", "'ltr'");
40 debug("Read document.body.dir in body");
41 shouldBe("document.body.dir", "'ltr'");
44 var successfullyParsed
= true;
46 <script src=
"../js/resources/js-test-post.js"></script>