343730-1.xhtml (587B)
1 <html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait"> 2 <head> 3 4 <script> 5 <![CDATA[ 6 7 var div; 8 9 function boo() 10 { 11 var newSpan = document.createElement('span'); 12 div = document.getElementById('div'); 13 14 var newScript = document.createElement('script'); 15 var nt = document.createTextNode("document.body.removeChild(div);"); 16 newScript.appendChild(nt); 17 newSpan.appendChild(newScript); 18 19 div.appendChild(newSpan); 20 21 document.documentElement.removeAttribute("class"); 22 } 23 24 ]]> 25 </script> 26 27 </head> 28 29 <body onload="setTimeout(boo, 30);"> 30 31 <div id="div"></div> 32 33 </body> 34 35 </html>