dom/base/crashtests/338674-1.xhtml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/base/crashtests/338674-1.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,36 @@
     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 s = document.getElementById("s")
    1.12 +  var t = s.previousSibling; // a whitespace text node..
    1.13 +
    1.14 +  document.addEventListener("DOMAttrModified", bang, false);
    1.15 +  rM(s);
    1.16 +  document.removeEventListener("DOMAttrModified", bang, false);
    1.17 +
    1.18 +  function bang(ev) {
    1.19 +    document.removeEventListener("DOMAttrModified", bang, false); // avoid accidental recursion, multiple calls, etc.
    1.20 +    rM(t);
    1.21 +  }
    1.22 +  
    1.23 +  document.documentElement.removeAttribute("class");
    1.24 +}
    1.25 +
    1.26 +function rM(n) { n.parentNode.removeChild(n); }
    1.27 +
    1.28 +</script>
    1.29 +
    1.30 +</head>
    1.31 +
    1.32 +<body onload="setTimeout(boom, 1);">
    1.33 +
    1.34 +<div><select><option>C</option></select></div>
    1.35 +
    1.36 +<span id="s">A <div>B</div></span>
    1.37 +
    1.38 +</body>
    1.39 +</html>

mercurial