4 https://bugzilla.mozilla.org/show_bug.cgi?id=691
7 <title>Test for Bug
691</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" />
11 <script type=
"text/javascript">
14 var stage
= document
.getElementById("stage");
15 if (what
== "modularity") {
16 var spaghetti
= document
.createElement("IMG",null);
17 spaghetti
.setAttribute("SRC","/static/nnc_lockup.gif");
18 spaghetti
.setAttribute("id","foo");
19 stage
.insertBefore(spaghetti
,stage
.firstChild
);
24 var stage
= document
.getElementById("stage");
25 var body
= document
.getElementsByTagName("BODY")[0];
26 while (stage
.firstChild
) {
27 stage
.removeChild(stage
.firstChild
);
34 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=691">Mozilla Bug
691</a>
45 <script class=
"testbody" type=
"text/javascript">
47 /** Test for Bug
691 **/
57 ok($(
"foo"),
"basic DOM manipulation doesn't crash");