content/base/crashtests/338391-1.xhtml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/content/base/crashtests/338391-1.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,33 @@
     1.4 +<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
     1.5 +<head>
     1.6 +
     1.7 +<script>
     1.8 +
     1.9 +function boom()
    1.10 +{
    1.11 +  var n = document.getElementById("n");
    1.12 +
    1.13 +  document.addEventListener("DOMNodeRemoved", foozle, false);
    1.14 +  n.parentNode.removeChild(n);
    1.15 +  document.removeEventListener("DOMNodeRemoved", foozle, false);
    1.16 +
    1.17 +  function foozle()
    1.18 +  {
    1.19 +    document.removeEventListener("DOMNodeRemoved", foozle, false); // prevent accidental recursion
    1.20 +
    1.21 +    n.parentNode.removeChild(n);
    1.22 +    
    1.23 +    document.documentElement.removeAttribute("class");
    1.24 +  }
    1.25 +}
    1.26 +
    1.27 +</script>
    1.28 +
    1.29 +</head>
    1.30 +
    1.31 +<body onload="setTimeout(boom, 30)">
    1.32 +
    1.33 +<div id="n"></div>
    1.34 +
    1.35 +</body>
    1.36 +</html>

mercurial