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" />
12 <body onload=
"Inject()">
14 <script class=
"testbody" type=
"text/javascript">
16 /** Test that unicode non-characters are not discarded **/
19 is($(
"display").innerHTML,
"All good.",
"Noncharacters not stripped");
25 // script fragments containing Unicode non-characters
28 eval(
"$(\"display\
").innerHTML += \" U+FDD0 is evil \
"");
32 eval(
"$(\"display\
").innerHTML += \" U+FDD1 is evil \
"");
36 eval(
"$(\"display\
").innerHTML += \" U+FDD2 is evil \
"");
40 eval(
"$(\"display\
").innerHTML += \" U+FDD3 is evil \
"");
44 eval(
"$(\"display\
").innerHTML += \" U+FDD4 is evil \
"");
48 eval(
"$(\"display\
").innerHTML += \" U+FDD5 is evil \
"");
52 eval(
"$(\"display\
").innerHTML += \" U+FDD6 is evil \
"");
56 eval(
"$(\"display\
").innerHTML += \" U+FDD7 is evil \
"");
60 eval(
"$(\"display\
").innerHTML += \" U+FDD8 is evil \
"");
64 eval(
"$(\"display\
").innerHTML += \" U+FDD9 is evil \
"");
68 eval(
"$(\"display\
").innerHTML += \" U+FDDA is evil \
"");
72 eval(
"$(\"display\
").innerHTML += \" U+FDDB is evil \
"");
76 eval(
"$(\"display\
").innerHTML += \" U+FDDC is evil \
"");
80 eval(
"$(\"display\
").innerHTML += \" U+FDDD is evil \
"");
84 eval(
"$(\"display\
").innerHTML += \" U+FDDE is evil \
"");
88 eval(
"$(\"display\
").innerHTML += \" U+FDDF is evil \
"");
92 eval(
"$(\"display\
").innerHTML += \" U+FDE0 is evil \
"");
96 eval(
"$(\"display\
").innerHTML += \" U+FDE1 is evil \
"");
100 eval(
"$(\"display\
").innerHTML += \" U+FDE2 is evil \
"");
104 eval(
"$(\"display\
").innerHTML += \" U+FDE3 is evil \
"");
108 eval(
"$(\"display\
").innerHTML += \" U+FDE4 is evil \
"");
112 eval(
"$(\"display\
").innerHTML += \" U+FDE5 is evil \
"");
116 eval(
"$(\"display\
").innerHTML += \" U+FDE6 is evil \
"");
120 eval(
"$(\"display\
").innerHTML += \" U+FDE7 is evil \
"");
124 eval(
"$(\"display\
").innerHTML += \" U+FDE8 is evil \
"");
128 eval(
"$(\"display\
").innerHTML += \" U+FDE9 is evil \
"");
132 eval(
"$(\"display\
").innerHTML += \" U+FDEA is evil \
"");
136 eval(
"$(\"display\
").innerHTML += \" U+FDEB is evil \
"");
140 eval(
"$(\"display\
").innerHTML += \" U+FDEC is evil \
"");
144 eval(
"$(\"display\
").innerHTML += \" U+FDED is evil \
"");
148 eval(
"$(\"display\
").innerHTML += \" U+FDEE is evil \
"");
152 eval(
"$(\"display\
").innerHTML += \" U+FDEF is evil \
"");
156 eval(
"$(\"display\
").innerHTML += \" U+FFFE is evil \
"");
160 eval(
"$(\"display\
").innerHTML += \" U+FFFF is evil \
"");
164 eval(
"$(\"display\
").innerHTML += \" U+
1FFFE is evil \
"");
168 eval(
"$(\"display\
").innerHTML += \" U+
1FFFF is evil \
"");
172 eval(
"$(\"display\
").innerHTML += \" U+
2FFFE is evil \
"");
176 eval(
"$(\"display\
").innerHTML += \" U+
2FFFF is evil \
"");
180 eval(
"$(\"display\
").innerHTML += \" U+
3FFFE is evil \
"");
184 eval(
"$(\"display\
").innerHTML += \" U+
3FFFF is evil \
"");
188 eval(
"$(\"display\
").innerHTML += \" U+
4FFFE is evil \
"");
192 eval(
"$(\"display\
").innerHTML += \" U+
4FFFF is evil \
"");
196 eval(
"$(\"display\
").innerHTML += \" U+
5FFFE is evil \
"");
200 eval(
"$(\"display\
").innerHTML += \" U+
5FFFF is evil \
"");
204 eval(
"$(\"display\
").innerHTML += \" U+
6FFFE is evil \
"");
208 eval(
"$(\"display\
").innerHTML += \" U+
6FFFF is evil \
"");
212 eval(
"$(\"display\
").innerHTML += \" U+
7FFFE is evil \
"");
216 eval(
"$(\"display\
").innerHTML += \" U+
7FFFF is evil \
"");
220 eval(
"$(\"display\
").innerHTML += \" U+
8FFFE is evil \
"");
224 eval(
"$(\"display\
").innerHTML += \" U+
8FFFF is evil \
"");
228 eval(
"$(\"display\
").innerHTML += \" U+
9FFFE is evil \
"");
232 eval(
"$(\"display\
").innerHTML += \" U+
9FFFF is evil \
"");
236 eval(
"$(\"display\
").innerHTML += \" U+AFFFE is evil \
"");
240 eval(
"$(\"display\
").innerHTML += \" U+AFFFF is evil \
"");
244 eval(
"$(\"display\
").innerHTML += \" U+BFFFE is evil \
"");
248 eval(
"$(\"display\
").innerHTML += \" U+BFFFF is evil \
"");
252 eval(
"$(\"display\
").innerHTML += \" U+CFFFE is evil \
"");
256 eval(
"$(\"display\
").innerHTML += \" U+CFFFF is evil \
"");
260 eval(
"$(\"display\
").innerHTML += \" U+DFFFE is evil \
"");
264 eval(
"$(\"display\
").innerHTML += \" U+DFFFF is evil \
"");
268 eval(
"$(\"display\
").innerHTML += \" U+EFFFE is evil \
"");
272 eval(
"$(\"display\
").innerHTML += \" U+EFFFF is evil \
"");
276 eval(
"$(\"display\
").innerHTML += \" U+FFFFE is evil \
"");
280 eval(
"$(\"display\
").innerHTML += \" U+FFFFF is evil \
"");
284 eval(
"$(\"display\
").innerHTML += \" U+
10FFFE is evil \
"");
288 eval(
"$(\"display\
").innerHTML += \" U+
10FFFF is evil \
"");
293 SimpleTest.waitForExplicitFinish();
296 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=445886">Mozilla Bug
445886</a>
297 <p id=
"display">All good.
</p>
298 <div id=
"content" style=
"display: none"></div>