blob: 1897853da1a5439a8d6dfbb1b848efefe4c9c26f [file] [log] [blame]
<?xml version="1.0" encoding="koi8-r" ?>
<html>
<body>
<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=9783">bug 9783</a>:
An XML declaration without an explicit encoding incorrectly triggers UTF-8 encoding in an HTML document</p>
<p>Test that an XML declaration <b>with</b> an explicit encoding is still honored. This is what Firefox 1.5 and Safari 2.0 do, unlike WinIE 6.</p>
<p id="result" />
<script>
if (window.testRunner)
testRunner.dumpAsText();
document.getElementById("result").innerHTML = "Charset: " +
(document.charset ? document.charset : document.characterSet) + " (should be KOI8-R)";
</script>
</body>
</html>