summaryrefslogtreecommitdiffstats
path: root/layout/reftests/dom/insertsingle.html
blob: 42a12ee7bf358e94a6c72e47f9d16078b58f149b (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
<html class="reftest-wait">
<head>

<script>
function boom()
{
  document.body.offsetHeight;

  var fourdiv = document.getElementById("four");
  var parent = fourdiv.parentNode;

  var newdiv = document.createElement("div");
  newdiv.appendChild(document.createTextNode("3"));
  parent.insertBefore(newdiv, fourdiv);

  document.body.offsetHeight;
  document.documentElement.className = "";
}
</script>

</head>
<body onload="boom();">
<div>1</div>
<div>2</div>
<div id="four">4</div>
<div>5</div>
</body>
</html>