4 https://bugzilla.mozilla.org/show_bug.cgi?id=371576
7 <title>Test for Bug
371576</title>
8 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css" />
12 SimpleTest
.waitForExplicitFinish();
16 var x
=document
.createElement('script');
17 x
.src
='data:text/html,var scr=document.createElement("script");\
18 scr.innerHTML = "function doe3(){$(\'display\').innerHTML = \'You should see this text\';}";\
19 $("head").appendChild(scr);';
20 x
.onload= function (){
22 ok(true,"function doe3 is defined, and the body content has been replaced.");
23 is($("display").textContent
, "You should see this text", "text set properly");
26 $('head').appendChild(x
);
33 <p id=
"display">You shouldn't see this
</p>
34 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=371576">Mozilla Bug
371576</a>