Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / uri / utf8-path.html
blobe797e94cfd98440f559602bc7967e4f624dfca11
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
4 </head>
5 <body>
7 <script>
8 if (window.testRunner)
9 testRunner.dumpAsText();
10 </script>
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
17 the query path.<br>
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>
23 <script>
24 try {
25 document.write('"' + document.scripts[1].src + '"<br>');
26 document.write('"' + document.scripts[2].src + '"<br>');
27 document.write('"' + document.scripts[3].src + '"<br>');
28 } catch (ex) {
29 document.write('"' + document.getElementById("scr1").src + '"<br>');
30 document.write('"' + document.getElementById("scr2").src + '"<br>');
31 document.write('"' + document.getElementById("scr3").src + '"<br>');
33 </script>
35 </body>
36 </html>