diff options
Diffstat (limited to 'LayoutTests/fast/encoding/pseudo-xml.html')
-rw-r--r-- | LayoutTests/fast/encoding/pseudo-xml.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/LayoutTests/fast/encoding/pseudo-xml.html b/LayoutTests/fast/encoding/pseudo-xml.html new file mode 100644 index 0000000..e71d39e --- /dev/null +++ b/LayoutTests/fast/encoding/pseudo-xml.html @@ -0,0 +1,20 @@ +<?xml version="1.0"?> +<!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"> +<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.layoutTestController) + layoutTestController.dumpAsText(); + +document.getElementById("result").innerHTML = "Charset: " + + (document.charset ? document.charset : document.characterSet) + " (should be your browser default one)"; +</script> + +</body> +</html> |