meta-in-body.html revision f05b935882198ccf7d81675736e3aeb089c5113a
1<html> 2<head> 3</head> 4<body> 5<meta charset=ISO-2022-JP> 6<pre id="log"></pre> 7<script> 8function log(message) 9{ 10 document.getElementById("log").innerText += message + "\n"; 11} 12 13if (window.layoutTestController) 14 layoutTestController.dumpAsText(); 15 16if (document.inputEncoding == "ISO-2022-JP") 17 log("PASS: " + document.inputEncoding); 18else 19 log("FAIL: " + document.inputEncoding); 20</script> 21<p> 22This 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. 23</body> 24</html> 25