diff options
Diffstat (limited to 'LayoutTests/fast/encoding/meta-in-body.html')
-rw-r--r-- | LayoutTests/fast/encoding/meta-in-body.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/LayoutTests/fast/encoding/meta-in-body.html b/LayoutTests/fast/encoding/meta-in-body.html new file mode 100644 index 0000000..f66097c --- /dev/null +++ b/LayoutTests/fast/encoding/meta-in-body.html @@ -0,0 +1,24 @@ +<html> +<head> +</head> +<body> +<meta charset=ISO-2022-JP> +<pre id="log"></pre> +<script> +function log(message) +{ + document.getElementById("log").innerText += message + "\n"; +} + +if (window.layoutTestController) + layoutTestController.dumpAsText(); + +if (document.inputEncoding == "ISO-2022-JP") + log("PASS: " + document.inputEncoding); +else + log("FAIL: " + document.inputEncoding); +</script> +<p> +This test checks that the charset sniffer scans at least 1024 bytes of data to find a meta tag, even if it is not in the head section. +</body> +</html> |