diff options
Diffstat (limited to 'LayoutTests/fast/encoding/mismatched-end-tag.html')
-rw-r--r-- | LayoutTests/fast/encoding/mismatched-end-tag.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/LayoutTests/fast/encoding/mismatched-end-tag.html b/LayoutTests/fast/encoding/mismatched-end-tag.html new file mode 100644 index 0000000..2b738c4 --- /dev/null +++ b/LayoutTests/fast/encoding/mismatched-end-tag.html @@ -0,0 +1,24 @@ +<html> +<head> +</script> +<meta charset=windows-1255> +</head> +<body> +<pre id="log"></pre> +<script> +function log(message) +{ + document.getElementById("log").innerText += message + "\n"; +} + +if (window.layoutTestController) + layoutTestController.dumpAsText(); + +if (document.inputEncoding == "windows-1255") + log("PASS: " + document.inputEncoding); +else + log("FAIL: " + document.inputEncoding); +</script> +<p>This test checks that charset sniffer does not get confused by the extraneous end script tag and ignore the meta tag, thinking it is inside a script.</p> +</body> +</html> |