Use testRunner instead of layoutTestController in fast/doctypes, dom, dynamic, encodi...
[WebKit-https.git] / LayoutTests / fast / dom / compatMode-Strict.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
2         "http://www.w3.org/TR/html4/strict.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);
10 }
11
12 function runTests() {
13     if (window.testRunner)
14         testRunner.dumpAsText();
15
16     if (document.compatMode == "CSS1Compat")
17         debug('SUCCESS')
18     else
19         debug('FAILURE')
20 }
21
22 </script>
23 </head>
24 <body onload="runTests();">
25 This tests that compatMode returns 'CSS1Compat' when the declared DTD is known (we are in strict mode). If the test is sucessful, the text below should say "SUCCESS".
26 <pre id="console">
27 </pre>
28 </body>
29 </html>