gecko-dev/dom/base/crashtests/593302-1.html

30 строки
738 B
HTML

<!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>