OLD | NEW |
1 document.dir should reflect the 'dir' content attribute of the <html> element an
d should be settable in <head>. | 1 document.dir should reflect the 'dir' content attribute of the <html> element an
d should be settable in <head>. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 Read document.dir in head | 6 Read document.dir in head |
7 PASS headReadDocumentDir is "" | 7 PASS headReadDocumentDir is "" |
8 | 8 |
9 Write document.dir in head | 9 Write document.dir in head |
10 PASS headWriteDocumentDir is "rtl" | 10 PASS headWriteDocumentDir is "rtl" |
11 | 11 |
12 Read document.dir in body | 12 Read document.dir in body |
13 PASS document.dir is "rtl" | 13 PASS document.dir is "rtl" |
14 | 14 |
15 Read document.documentElement.dir in body | 15 Read document.documentElement.dir in body |
16 PASS document.documentElement.dir is "rtl" | 16 PASS document.documentElement.dir is "rtl" |
17 | 17 |
| 18 Read document.documentElement.getAttribute('dir') in body |
| 19 PASS document.documentElement.getAttribute('dir') is "rtl" |
| 20 |
18 Read document.body.dir in body | 21 Read document.body.dir in body |
19 PASS document.body.dir is "" | 22 PASS document.body.dir is "" |
20 | 23 |
21 Write document.dir in body | 24 Write document.dir in body |
22 PASS document.dir is "ltr" | 25 PASS document.dir is "ltr" |
23 | 26 |
24 Read document.documentElement.dir in body | 27 Read document.documentElement.dir in body |
25 PASS document.documentElement.dir is "ltr" | 28 PASS document.documentElement.dir is "ltr" |
26 | 29 |
27 Read document.body.dir in body | 30 Read document.body.dir in body |
28 PASS document.body.dir is "" | 31 PASS document.body.dir is "" |
29 | 32 |
| 33 Read document.documentElement.getAttribute('dir') in body |
| 34 PASS document.documentElement.getAttribute('dir') is "ltr" |
| 35 |
30 Write non-canonical case document.dir in body | 36 Write non-canonical case document.dir in body |
31 PASS document.dir = 'RTL' did not throw exception. | 37 PASS document.dir = 'RTL' did not throw exception. |
32 PASS document.dir is "rtl" | 38 PASS document.dir is "rtl" |
33 | 39 |
| 40 Read document.documentElement.getAttribute('dir') in body |
| 41 PASS document.documentElement.getAttribute('dir') is "RTL" |
| 42 |
34 Write invalid document.dir in body | 43 Write invalid document.dir in body |
35 PASS document.dir = 'WRONG' did not throw exception. | 44 PASS document.dir = 'WRONG' did not throw exception. |
36 PASS document.dir is "" | 45 PASS document.dir is "" |
37 | 46 |
| 47 Read document.documentElement.getAttribute('dir') in body |
| 48 PASS document.documentElement.getAttribute('dir') is "WRONG" |
| 49 |
38 Write non-canonical case document.body.dir in body | 50 Write non-canonical case document.body.dir in body |
39 PASS document.body.dir = 'RTL' did not throw exception. | 51 PASS document.body.dir = 'RTL' did not throw exception. |
40 PASS document.body.dir is "rtl" | 52 PASS document.body.dir is "rtl" |
41 | 53 |
42 Write invalid document.body.dir in body | 54 Write invalid document.body.dir in body |
43 PASS document.body.dir = 'WRONG' did not throw exception. | 55 PASS document.body.dir = 'WRONG' did not throw exception. |
44 PASS document.body.dir is "" | 56 PASS document.body.dir is "" |
45 | 57 |
| 58 Read document.dir in body |
| 59 PASS document.dir is "" |
| 60 |
| 61 Read document.documentElement.getAttribute('dir') in body |
| 62 PASS document.documentElement.getAttribute('dir') is "null" |
| 63 |
46 PASS successfullyParsed is true | 64 PASS successfullyParsed is true |
47 | 65 |
48 TEST COMPLETE | 66 TEST COMPLETE |
49 | 67 |
OLD | NEW |