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