4 https://bugzilla.mozilla.org/show_bug.cgi?id=445886
7 <meta http-equiv=
"Content-type" content=
"text/html; charset=UTF-8">
8 <title>Test for Unicode non-characters
</title>
9 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css" />
11 <script type=
"text/javascript">
14 $("display").innerHTML
= "Evil";
18 <body Â
>onload=
"Inject()">
20 <script class=
"testbody" type=
"text/javascript">
22 /** test that UTF-
8 decoding resynchronizes after incomplete sequences */
25 is($(
"display").innerHTML,
"All good.",
"No overconsumption");
29 addLoadEvent(function() {
32 SimpleTest.waitForExplicitFinish();
35 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=445886">Mozilla Bug
445886</a>
36 <p id=
"display">All good.
</p>
37 <div id=
"content" style=
"display: none"></div>