summaryrefslogtreecommitdiffstats
path: root/dom/html/crashtests/339501-2.xhtml
blob: 6a1835fb7192cccfb366b0c95ee971d1e1a6bcef (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
30
31
32
33
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<script>

function boom()
{
  document.addEventListener("DOMNodeRemoved", foo, false);
  remove(document.getElementById("B"));
  document.removeEventListener("DOMNodeRemoved", foo, false);

  function foo()
  {
    document.removeEventListener("DOMNodeRemoved", foo, false);
    remove(document.getElementById("A"));
  }
}


window.addEventListener("load", boom, false);

function remove(q1) { q1.parentNode.removeChild(q1); }

</script>

</head>

<body>

<select><option id="A">A</option><option id="B">B</option></select>

</body>
</html>