blob: e891bb07a808fb27e1e828e9309d6561a07e5c03 [file] [log] [blame]
<?xml version="1.0" encoding="KOI8-R" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=windows-1251" http-equiv="Content-Type"/>
</head>
<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 id="result" />
<script>
if (window.testRunner)
testRunner.dumpAsText();
document.getElementById("result").innerHTML = "Charset: " +
(document.charset ? document.charset : document.characterSet) + " (should be windows-1251)";
</script>
</body>
</html>