3 <script src=
"../../resources/js-test.js"></script>
6 description("Passes if it doesn't crash and the child is not in the id map");
8 var script
= document
.createElement("script");
9 script
.type
= "dont-execute";
10 script
.textContent
= "script.remove()";
11 child
= document
.createElement("div");
13 script
.appendChild(child
);
15 // The script won't execute here because the type is invalid, but it also won't
16 // get marked as being already run, so changing the children later will run it.
17 document
.documentElement
.appendChild(script
);
19 // Per the spec setting the type has no effect
22 // but changing the children *will* execute the script now that the type is
29 shouldBeNull("document.getElementById('child')");