summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/encoding/pseudo-xml-2.html
blob: 94f9b32b3480a822e14d7a9b55a5177b4c5935e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?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.layoutTestController)
    layoutTestController.dumpAsText();

document.getElementById("result").innerHTML = "Charset: " + 
    (document.charset ? document.charset : document.characterSet) + " (should be KOI8-R)";
</script>

</body>
</html>