summaryrefslogtreecommitdiffstats
path: root/layout/base/crashtests/325967-1.html
blob: 37d0ece800f45f7f6b4c6ae2ef14a5431bcccae3 (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
<html class="reftest-wait">
<head>

<script>

function init()
{
  var ww = document.getElementById("ww");
  var inp = document.getElementById("inp");
  
  document.addEventListener("DOMNodeInserted", u, false);

  document.body.appendChild(ww);
  
  function u()
  { 
    document.removeEventListener("DOMNodeInserted", u, false);
    ww.removeChild(inp);
    document.documentElement.removeAttribute("class");
  }
}

</script>

</head>

<body onload="init()"><div id="ww"><input type="text" value="inputtext" id="inp">moretext</div></body>

</html>