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