5 https://bugzilla.mozilla.org/show_bug.cgi?id=1032511
9 <title>Test for Bug
1032511</title>
10 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
11 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
14 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=1032511">Mozilla Bug
1032511</a>
16 <div id=
"content" style=
"display: none">
17 <iframe name=
"x" id=
"x"></iframe>
18 <iframe name=
"y" id=
"y"></iframe>
22 <a href=
"http://www.example.net?a=b&c=d" id=
"anchor">foobar
</a>
23 <area href=
"http://www.example.net?a=b&c=d" id=
"area">foobar
</area>
24 <script type=
"application/javascript">
26 /** Test for Bug
1032511 **/
27 var a = new URLSearchParams(
"%e2");
29 is(a.toString(),
"%EF%BF%BD=",
"The value should be here.");
31 a = new URLSearchParams(
"a%e2");
32 is(a.toString(),
"a%EF%BF%BD=",
"The value should be here.");
34 a = new URLSearchParams(
"a%e2b");
35 is(a.toString(),
"a%EF%BF%BDb=",
"The value should be here.");