mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 16:46:26 +00:00
36 lines
587 B
HTML
36 lines
587 B
HTML
|
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
|
||
|
<head>
|
||
|
|
||
|
<script>
|
||
|
<![CDATA[
|
||
|
|
||
|
var div;
|
||
|
|
||
|
function boo()
|
||
|
{
|
||
|
var newSpan = document.createElement('span');
|
||
|
div = document.getElementById('div');
|
||
|
|
||
|
var newScript = document.createElement('script');
|
||
|
var nt = document.createTextNode("document.body.removeChild(div);");
|
||
|
newScript.appendChild(nt);
|
||
|
newSpan.appendChild(newScript);
|
||
|
|
||
|
div.appendChild(newSpan);
|
||
|
|
||
|
document.documentElement.removeAttribute("class");
|
||
|
}
|
||
|
|
||
|
]]>
|
||
|
</script>
|
||
|
|
||
|
</head>
|
||
|
|
||
|
<body onload="setTimeout(boo, 30);">
|
||
|
|
||
|
<div id="div"></div>
|
||
|
|
||
|
</body>
|
||
|
|
||
|
</html>
|