4 https://bugzilla.mozilla.org/show_bug.cgi?id=371576
7 <title>Test for Bug
371576</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 SimpleTest
.waitForExplicitFinish();
17 var x
=document
.createElement('script');
18 x
.src
='data:text/html,var scr=document.createElement("script");\
19 scr.innerHTML = "function doe3(){$(\'display\').innerHTML = \'You should see this text\';}";\
20 $("head").appendChild(scr);';
21 x
.onload= function (){
23 ok(true,"function doe3 is defined, and the body content has been replaced.");
24 is($("display").textContent
, "You should see this text", "text set properly");
27 $('head').appendChild(x
);
34 <p id=
"display">You shouldn't see this
</p>
35 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=371576">Mozilla Bug
371576</a>