summaryrefslogtreecommitdiff
path: root/dom/base/crashtests/338674-1.xhtml
blob: 2cba227dcdc19da58934b4a96558b8fd91d5692d (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
<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>