Home | History | Annotate | Download | only in encoding
      1 <html>
      2 <head>
      3 <title>
      4 <meta charset=windows-1255>
      5 </title>
      6 <meta charset=KOI8-R>
      7 </head>
      8 <body>
      9 <pre id="log"></pre>
     10 <script>
     11 function log(message)
     12 {
     13     document.getElementById("log").innerText += message + "\n";
     14 }
     15 
     16 if (window.layoutTestController)
     17     layoutTestController.dumpAsText();
     18 
     19 if (document.inputEncoding == "KOI8-R")
     20     log("PASS: " + document.inputEncoding);
     21 else
     22     log("FAIL: " + document.inputEncoding);
     23 </script>
     24 <p>
     25 This test verifies that charset sniffer ignores meta tag in a title.
     26 </body>
     27 </html>
     28