diff options
Diffstat (limited to 'LayoutTests/fast/encoding/pseudo-xml-2.html')
-rw-r--r-- | LayoutTests/fast/encoding/pseudo-xml-2.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/LayoutTests/fast/encoding/pseudo-xml-2.html b/LayoutTests/fast/encoding/pseudo-xml-2.html new file mode 100644 index 0000000..94f9b32 --- /dev/null +++ b/LayoutTests/fast/encoding/pseudo-xml-2.html @@ -0,0 +1,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> |