summaryrefslogtreecommitdiff
path: root/dom/html/crashtests/339501-1.xhtml
blob: 1a231ee645cb93c8c929fb23b27e9c273de41aea (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("A"));
  document.removeEventListener("DOMNodeRemoved", foo, false);

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


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>