Home | History | Annotate | Download | only in encoding
      1 <html>
      2 <head>
      3     <meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
      4     <link rel="stylesheet" type="text/css" href="css-link-charset.css" charset="utf-8">
      5 </head>
      6 <body onload="test()">
      7 <p>Test to see if the charset property in a link works properly.</p>
      8 <p id="result"></p>
      9 <script>
     10 function test() {
     11     if (window.layoutTestController)
     12         layoutTestController.dumpAsText();
     13     try {
     14         text = document.styleSheets[0].rules[0].style.cssText;
     15         if (text.match('.*SUSS.*'))
     16             result.innerHTML = "SUCCESS";
     17         else
     18             result.innerHTML = "FAILURE: " + text;
     19     } catch (ex) {
     20         result.innerHTML = "FAILURE: " + ex;
     21     }
     22 }
     23 </script>
     24 </body>
     25 </html>
     26