Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / compatMode-Strict.html
blob50855b5dd924f208dc7984eebe5e7e943b4b543d
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);
12 function runTests() {
13 if (window.testRunner)
14 testRunner.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 strict mode). If the test is sucessful, the text below should say "SUCCESS".
26 <pre id="console">
27 </pre>
28 </body>
29 </html>