dom/base/crashtests/338674-1.xhtml
author Iulian Moraru <imoraru@mozilla.com>
Sat, 23 Oct 2021 09:42:25 +0300
changeset 596791 54d250f01e8ba17a8526c1a64b21157da65d9619
parent 26043 d4f0e362a0a53f1aa50d43ef09a7a274286be3a0
permissions -rw-r--r--
Backed out changeset 43103b364829 (bug 1640779) for causing reftest and mochitest failures. CLOSED TREE

<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
<head>

<script>

function boom()
{
  var s = document.getElementById("s")
  var t = s.previousSibling; // a whitespace text node..

  document.addEventListener("DOMAttrModified", bang, false);
  rM(s);
  document.removeEventListener("DOMAttrModified", bang, false);

  function bang(ev) {
    document.removeEventListener("DOMAttrModified", bang, false); // avoid accidental recursion, multiple calls, etc.
    rM(t);
  }
  
  document.documentElement.removeAttribute("class");
}

function rM(n) { n.parentNode.removeChild(n); }

</script>

</head>

<body onload="setTimeout(boom, 1);">

<div><select><option>C</option></select></div>

<span id="s">A <div>B</div></span>

</body>
</html>