1 <?xml version="1.0" encoding="koi8-r" ?> 2 <html> 3 <body> 4 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=9783">bug 9783</a>: 5 An XML declaration without an explicit encoding incorrectly triggers UTF-8 encoding in an HTML document</p> 6 <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> 7 <p id="result" /> 8 9 <script> 10 if (window.layoutTestController) 11 layoutTestController.dumpAsText(); 12 13 document.getElementById("result").innerHTML = "Charset: " + 14 (document.charset ? document.charset : document.characterSet) + " (should be KOI8-R)"; 15 </script> 16 17 </body> 18 </html> 19