summaryrefslogtreecommitdiffstats
path: root/dom/html/crashtests/620078-1.html
blob: 39462706c18676a835f547a101440b33c8e9a18a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<html>
<head>
<script>

function boom()
{
  var frame = document.getElementById("f");
  var frameRoot = frame.contentDocument.documentElement;
  document.body.removeChild(frame);
  var i = document.createElementNS("http://www.w3.org/1999/xhtml", "input");
  i.setAttribute("autofocus", "true"); 
  frameRoot.appendChild(i);
}

</script>
</head>

<body onload="boom();"><iframe id="f" src="data:text/html,"></iframe></body>
</html>