css-link-charset.html revision fd5c6425ce58eb75211be7718d5dee960842a37e
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>
10function test() {
11    if (window.layoutTestController)
12        layoutTestController.dumpAsText();
13    try {
14        text = document.styleSheets[0].rules[0].style.cssText;
15        if (text.match('.*SU���SS.*'))
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