<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.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 almost strict mode). If the test is sucessful, the text below should say "SUCCESS".
<pre id="console">
</pre>
</body>
</html>
