603844.html 640 B

123456789101112131415161718192021222324252627282930313233
  1. <!DOCTYPE html>
  2. <html class="reftest-wait">
  3. <head>
  4. <script>
  5. function boom()
  6. {
  7. var frame = document.createElementNS("http://www.w3.org/1999/xhtml", "iframe");
  8. frame.onload = y;
  9. frame.src = "data:text/plain,0";
  10. document.body.appendChild(frame);
  11. frameDoc = frame.contentDocument;
  12. function y()
  13. {
  14. frameDoc.removeChild(frameDoc.documentElement);
  15. var xp = new XSLTProcessor;
  16. xp.importStylesheet(frameDoc);
  17. try {
  18. xp.transformToDocument(frameDoc.createTextNode('x'));
  19. } catch(e) { }
  20. document.documentElement.removeAttribute("class");
  21. }
  22. }
  23. </script>
  24. </head>
  25. <body onload="boom();"></body>
  26. </html>