summaryrefslogtreecommitdiffstats
path: root/dom/base/crashtests/386000-1.html
blob: 0169a28fb637b14c09d996ecc507c47cfc9eae55 (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
34
35
36
<!DOCTYPE HTML>
<html class="reftest-wait">
<head>
<script>

var de;

function boom()
{
  de = document.documentElement;
  document.addEventListener("DOMNodeRemoved", f, false);
    
  function f()
  {
    document.removeEventListener("DOMNodeRemoved", f, false);
    de.appendChild(document.createElement("body"));
  }
    
  document.removeChild(de);
  
  setTimeout(cont, 30);
}

function cont()
{
  document.appendChild(de);
  document.documentElement.removeAttribute("class");
}

</script>

</head>
<body onload="setTimeout(boom, 30);">

</body>
</html>