OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
2 "http://www.w3.org/TR/html4/loose.dtd"> | 2 "http://www.w3.org/TR/html4/loose.dtd"> |
3 <html> | 3 <html> |
4 <head> | 4 <head> |
5 <script> | 5 <script> |
6 function debug(str) { | 6 function debug(str) { |
7 pre = document.getElementById('console'); | 7 pre = document.getElementById('console'); |
8 text = document.createTextNode(str + '\n'); | 8 text = document.createTextNode(str + '\n'); |
9 pre.appendChild(text); | 9 pre.appendChild(text); |
10 } | 10 } |
11 | 11 |
12 function runTests() { | 12 function runTests() { |
13 if (window.testRunner) | 13 if (window.testRunner) |
14 testRunner.dumpAsText(); | 14 testRunner.dumpAsText(); |
15 | 15 |
16 if (document.compatMode == "CSS1Compat") | 16 if (document.compatMode == "CSS1Compat") |
17 debug('SUCCESS') | 17 debug('SUCCESS') |
18 else | 18 else |
19 debug('FAILURE') | 19 debug('FAILURE') |
20 } | 20 } |
21 | 21 |
22 </script> | 22 </script> |
23 </head> | 23 </head> |
24 <body onload="runTests();"> | 24 <body onload="runTests();"> |
25 This tests that compatMode returns 'CSS1Compat' when the declared DTD is known (
we are in almost strict mode). If the test is sucessful, the text below should s
ay "SUCCESS". | 25 This tests that compatMode returns 'CSS1Compat' when the declared DTD is known (
we are in almost strict mode). If the test is successful, the text below should
say "SUCCESS". |
26 <pre id="console"> | 26 <pre id="console"> |
27 </pre> | 27 </pre> |
28 </body> | 28 </body> |
29 </html> | 29 </html> |
OLD | NEW |