summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/encoding/script-in-head.html
blob: d6dc1cad3952e795457c9ece689f483a2527eb6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!-- temp --><script language="JavaScript" type="text/JavaScript">
if (window.layoutTestController) {
    layoutTestController.dumpAsText();
    layoutTestController.waitUntilDone();
}
document.write ('<SCR' + 'IPT>' +

    'setTimeout(function () {' +
        <!-- The letters CCE below are Cyrillic, so we do test that the encoding is correct. -->
        <!-- We also take an opportunity to test that this weirdly located script actually executes. -->
        'document.getElementById("result").innerHTML="SUóóåSS";' +
        'if (window.layoutTestController)' +
            'layoutTestController.notifyDone();' +
    '}, 0);' +
'</SCR' + 'IPT>');document.close(); </script>
<!-- /temp --><!--HEADER-->

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=koi8-r">
</head>
<body>
<p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=12165">bug 12165</a>:
text encoding problem at jn.sapo.pt</p>
<p>Should see a success message below.</p>
<div id="result"></div>
</body>
</html>