blob: 54169c177b13c8732ff7b4d52cb5a543f15133ca [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.layoutTestController)
layoutTestController.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>