467881-1.html (939B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <head> 4 <script> 5 6 function boom() 7 { 8 var HTML_NS = "http://www.w3.org/1999/xhtml"; 9 var outer, inner, q; 10 11 function a() 12 { 13 outer = document.createElementNS(HTML_NS, "div"); 14 inner = document.createElementNS(HTML_NS, "div"); 15 16 inner.appendChild(document.createElementNS(HTML_NS, "iframe")); 17 inner.appendChild(document.createElementNS(HTML_NS, "div")); 18 inner.appendChild(q = document.createElementNS(HTML_NS, "span")); 19 20 outer.appendChild(inner); 21 document.documentElement.appendChild(outer); 22 setTimeout(b, 10); 23 } 24 25 function b() 26 { 27 outer.appendChild(document.createElementNS(HTML_NS, "span")); 28 setTimeout(c, 10); 29 } 30 31 function c() 32 { 33 q.appendChild(document.createElementNS(HTML_NS, "div")); 34 document.documentElement.removeAttribute("class"); 35 } 36 37 a(); 38 } 39 40 window.addEventListener("load", boom); 41 42 </script> 43 </head> 44 45 <frameset></frameset> 46 47 </html>