summaryrefslogtreecommitdiffstats
path: root/dom/base/crashtests/490760-1.xhtml
blob: bfa6732e88c30da598f23fef06c5cc65ebb19e4f (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
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript">
<![CDATA[

function boom()
{
  var q = document.getElementsByTagName("style")[0];
  
  window.addEventListener("DOMNodeRemoved", f, false);
  q.innerHTML = "<span><\/span>";
  window.removeEventListener("DOMNodeRemoved", f, false);

  function f()
  {
    window.removeEventListener("DOMNodeRemoved", f, false);
    q.removeChild(q.childNodes[1]);
  }
}

]]>
</script>
</head>
<body onload="boom();"><style><span></span><span></span></style></body>
</html>