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

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

  var parent = document.getElementById("body");

  var newdiv = document.createElement("div");
  newdiv.appendChild(document.createTextNode("5"));
  parent.appendChild(newdiv);

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

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