2008-11-04 Anders Carlsson <andersca@apple.com>
[webkit/qt.git] / LayoutTests / fast / dom / compatMode-AlmostStrict.html
blobbfa1ba896b234e9843eebaa5ec5c8781e6b3c8c4
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
3 <html>
4 <head>
5 <script>
6 function debug(str) {
7 pre = document.getElementById('console');
8 text = document.createTextNode(str + '\n');
9 pre.appendChild(text);
12 function runTests() {
13 if (window.layoutTestController)
14 layoutTestController.dumpAsText();
16 if (document.compatMode == "CSS1Compat")
17 debug('SUCCESS')
18 else
19 debug('FAILURE')
22 </script>
23 </head>
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 say "SUCCESS".
26 <pre id="console">
27 </pre>
28 </body>
29 </html>