| <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.testRunner) | |
| testRunner.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> |