summaryrefslogtreecommitdiffstats
path: root/dom/base/crashtests/490760-1.xhtml
blob: 988f7c12babf714f750e8c52afbf12e415714915 (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);
  q.innerHTML = "<span><\/span>";
  window.removeEventListener("DOMNodeRemoved", f);

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

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