|
1 <!DOCTYPE html> |
|
2 <html class="reftest-wait"> |
|
3 <head> |
|
4 <script type="text/javascript"> |
|
5 function boom() |
|
6 { |
|
7 iframe = document.getElementById("iframe"); |
|
8 iframeBody = iframe.contentDocument.body; |
|
9 iframeBody.appendChild(makeNamedSpan("w")); |
|
10 remove(iframe); |
|
11 iframeBody.appendChild(makeNamedSpan("w")); |
|
12 remove(iframeBody); |
|
13 document.documentElement.className = ""; |
|
14 } |
|
15 |
|
16 function makeNamedSpan(i) |
|
17 { |
|
18 var s = document.createElement("span"); |
|
19 s.id = i; |
|
20 return s; |
|
21 } |
|
22 |
|
23 function remove(n) { n.parentNode.removeChild(n); } |
|
24 </script> |
|
25 </head> |
|
26 <body onload="boom();"> |
|
27 <iframe id="iframe" src="data:text/html,S"></iframe> |
|
28 </body> |
|
29 </html> |