Home | History | Annotate | Download | only in encoding
      1 <html>
      2 <head>
      3 <testme:meta charset=windows-1252>
      4 <meta charset=ISO-2022-JP>
      5 </head>
      6 <body>
      7 This test checks that the charset sniffer ignores namespaced meta tags.
      8 <pre id="log"></pre>
      9 <script>
     10 function log(message)
     11 {
     12     document.getElementById("log").innerText += message + "\n";
     13 }
     14 
     15 if (window.layoutTestController)
     16     layoutTestController.dumpAsText();
     17 
     18 if (document.inputEncoding == "ISO-2022-JP")
     19     log("PASS: " + document.inputEncoding);
     20 else
     21     log("FAIL: " + document.inputEncoding);
     22 </script>
     23 </body>
     24 </html>
     25