docshell/test/browser/test-form_sjis.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
michael@0 2 "http://www.w3.org/TR/REC-html401-19991224/strict.dtd">
michael@0 3 <html>
michael@0 4 <head>
michael@0 5 <meta http-equiv="content-type" content="text/html; charset=windows-1251">
michael@0 6 <title>Shift_JIS in body and text area</title>
michael@0 7 </head>
michael@0 8 <body>
michael@0 9 <h1>Incorrect meta charset</h1>
michael@0 10 <h2>This page is encoded in Shift_JIS, but has an incorrect meta charset
michael@0 11 claiming that it is windows-1251</h2>
michael@0 12 <p id="testpar">ユニコードは、すべての文字に固有の番号を付与します</p>
michael@0 13 <form>
michael@0 14 <p>
michael@0 15 <textarea id="testtextarea" rows=6 cols=60>ユニコードは、すべての文字に固有の番号を付与します</textarea>
michael@0 16 <input id="testinput" type="text" size=60 value="ユニコードは、すべての文字に固有の番号を付与します">
michael@0 17 </p>
michael@0 18 </form>
michael@0 19 <h2>Expected text on load:</h2>
michael@0 20 <p>&#x453;&#x2020;&#x453;&#x6A;&#x453;&#x52;&#x403;&#x5B;&#x453;&#x68;&#x201A;&#x41D;&#x403;&#x41;&#x201A;&#xB7;&#x201A;&#x427;&#x201A;&#x414;&#x201A;&#x41C;&#x2022;&#xB6;&#x40B;&#x459;&#x201A;&#x419;&#x40A;&#x415;&#x2014;&#x4C;&#x201A;&#x41C;&#x201D;&#x424;&#x40C;&#x2020;&#x201A;&#x440;&#x2022;&#x74;&#x2014;&#x5E;&#x201A;&#xB5;&#x201A;&#x42C;&#x201A;&#xB7;</p>
michael@0 21 <h2>Expected text on resetting the encoding to Shift_JIS:</h2>
michael@0 22 <p>&#x30E6;&#x30CB;&#x30B3;&#x30FC;&#x30C9;&#x306F;&#x3001;&#x3059;&#x3079;&#x3066;&#x306E;&#x6587;&#x5B57;&#x306B;&#x56FA;&#x6709;&#x306E;&#x756A;&#x53F7;&#x3092;&#x4ED8;&#x4E0E;&#x3057;&#x307E;&#x3059;</p>
michael@0 23 </body>
michael@0 24 </html>

mercurial