559491.html 740 B

123456789101112131415161718192021222324252627282930
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <script type="text/javascript">
  5. function boom()
  6. {
  7. for (var i = 0; i < 200; ++i) {
  8. //dump(i + "\n");
  9. r1 = document.createElementNS("http://www.w3.org/1999/xhtml", "a");
  10. r1.setAttributeNS(null, "href", "404");
  11. r1.style.color = "green";
  12. r2 = document.createElementNS("http://www.w3.org/1999/xhtml", "span");
  13. r2.style.color = "red";
  14. document.removeChild(document.documentElement);
  15. document.appendChild(r1);
  16. document.removeChild(document.documentElement);
  17. document.appendChild(r2);
  18. document.removeChild(document.documentElement);
  19. document.appendChild(r1);
  20. document.documentElement.offsetHeight;
  21. }
  22. }
  23. </script>
  24. </head>
  25. <body onload="boom();"></body>
  26. </html>