blob: cb58f5bdd8bec3a6947b00281b097a666abe04dd (
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 lastdiv = document.getElementById("last");
var parent = lastdiv.parentNode;
for (var i = 2; i <= 4; i++) {
var newdiv = document.createElement("div");
newdiv.appendChild(document.createTextNode(i));
parent.insertBefore(newdiv, lastdiv);
}
document.body.offsetHeight;
document.documentElement.className = "";
}
</script>
</head>
<body onload="boom();">
<div>1</div>
<div id="last">5</div>
</body>
</html>
|