4 https://bugzilla.mozilla.org/show_bug.cgi?id=392511
7 <title>Test for Bug
392511</title>
8 <script type=
"text/javascript" src=
"/MochiKit/MochiKit.js"></script>
9 <script type=
"text/javascript" src=
"/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css" />
13 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=392511">Mozilla Bug
392511</a>
15 <div id=
"content" style=
"display: none">
16 <div id=
"t1"><span onclick=
""&"></span></div>
17 <div id=
"t2"><span foo=
""&"></span></div>
18 <div id=
"t3"><span onclick='
'&'
></span></div>
19 <div id=
"t4"><span foo='
'&'
></span></div>
20 <div id=
"t5"><span onclick='
"'&'></span></div>
21 <div id="t6
"><span foo='"'&'
></span></div>
22 <div id=
"t7"><span onclick=
"'"&"></span></div>
23 <div id=
"t8"><span foo=
"'"&"></span></div>
26 <script class=
"testbody" type=
"text/javascript">
28 /** Test for Bug
392511 **/
41 for (var i = 1; i <= 8; ++i) {
43 var str = $(id).innerHTML;
44 var expect = "<span ";
45 expect += (i % 2) ? "onclick
" : "foo
";
46 expect += "=
" + results[i-1] + "></span>";
47 is (str, expect, "Wrong string for test
" + id);