blob: 50855b5dd924f208dc7984eebe5e7e943b4b543d [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<script>
function debug(str) {
pre = document.getElementById('console');
text = document.createTextNode(str + '\n');
pre.appendChild(text);
}
function runTests() {
if (window.testRunner)
testRunner.dumpAsText();
if (document.compatMode == "CSS1Compat")
debug('SUCCESS')
else
debug('FAILURE')
}
</script>
</head>
<body onload="runTests();">
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".
<pre id="console">
</pre>
</body>
</html>