3 <meta http-equiv=
"Content-Type" content=
"text/html; charset=windows-1251">
9 testRunner
.dumpAsText();
12 <p>Test for
<a href='https://bugs.webkit.org/show_bug.cgi?id=
7461'
>bug
7461</a>:
13 Always encode the path part of an URI as UTF-
8</p>
15 Test the URL as it is passed to the server. WinIE
6 and Firefox
3.0a results are currently diffrerent:
16 IE uses the target encoding for the query path, while Firefox uses the page encoding. Also, WinIE doesn't percent-encode
18 "<script id=scr1 src="intercept/print/ôàéë.js?÷åé=ìîé
"></script>" (no target charset specified)
<br>
19 "<script id=scr2 charset="windows-
1251" src="intercept/print/ôàéë.js?÷åé=ìîé
"></script>" (target charset=windows-
1251, same as page)
<br>
20 "<script id=scr3 charset="iso-
8859-
5" src="intercept/print/ôàéë.js?÷åé=ìîé
"></script>" (target charset=iso-
8859-
5)
<br><br>
22 Show the source attribute of the scripts. WinIE
6 doesn't use percent encoding here, while Firefox does.
<br>
25 document
.write('"' + document
.scripts
[1].src
+ '"<br>');
26 document
.write('"' + document
.scripts
[2].src
+ '"<br>');
27 document
.write('"' + document
.scripts
[3].src
+ '"<br>');
29 document
.write('"' + document
.getElementById("scr1").src
+ '"<br>');
30 document
.write('"' + document
.getElementById("scr2").src
+ '"<br>');
31 document
.write('"' + document
.getElementById("scr3").src
+ '"<br>');