blob: e712ce12121a7d88e650948ed06453900a23b157 [file] [log] [blame]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<link rel="stylesheet" type="text/css" href="css-link-charset.css" charset="utf-8">
</head>
<body onload="test()">
<p>Test to see if the charset property in a link works properly.</p>
<p id="result"></p>
<script>
function test() {
if (window.testRunner)
testRunner.dumpAsText();
try {
text = document.styleSheets[0].rules[0].style.cssText;
if (text.match('.*SUÑÑÅSS.*'))
result.innerHTML = "SUCCESS";
else
result.innerHTML = "FAILURE: " + text;
} catch (ex) {
result.innerHTML = "FAILURE: " + ex;
}
}
</script>
</body>
</html>