Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | <!DOCTYPE html> |
michael@0 | 2 | <html> |
michael@0 | 3 | <head> |
michael@0 | 4 | <meta charset=utf-8> |
michael@0 | 5 | <title>Test for euc-kr encoded form submission</title> |
michael@0 | 6 | <script type="text/javascript" src="/resources/testharness.js"></script> |
michael@0 | 7 | <script type="text/javascript" src="/resources/testharnessreport.js"></script> |
michael@0 | 8 | </head> |
michael@0 | 9 | <body> |
michael@0 | 10 | <div id="log"></div> |
michael@0 | 11 | <iframe name="ifr"></iframe> |
michael@0 | 12 | <form accept-charset="euc-kr" action="abc" target="ifr"> |
michael@0 | 13 | <input type="hidden" name="a" value="갂"> |
michael@0 | 14 | </form> |
michael@0 | 15 | <script> |
michael@0 | 16 | |
michael@0 | 17 | runTest(); |
michael@0 | 18 | |
michael@0 | 19 | function runTest() { |
michael@0 | 20 | var t = async_test("Test for euc-kr encoded form submission"); |
michael@0 | 21 | var f = document.forms[0]; |
michael@0 | 22 | var ifr = frames.ifr; |
michael@0 | 23 | ifr.onload = function() { |
michael@0 | 24 | t.step(function() { |
michael@0 | 25 | assert_equals("".split.call(ifr.location, "?")[1], "a=%81A"); |
michael@0 | 26 | }); |
michael@0 | 27 | t.done(); |
michael@0 | 28 | }; |
michael@0 | 29 | f.submit(); |
michael@0 | 30 | } |
michael@0 | 31 | |
michael@0 | 32 | </script> |
michael@0 | 33 | </body> |
michael@0 | 34 | </html> |