blob: 26d2d854010851dc3e7df61c7db2ddf79d48bc0e (
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");
for (var i = 3; i <= 5; i++) {
var newdiv = document.createElement("div");
newdiv.appendChild(document.createTextNode(i));
parent.appendChild(newdiv);
}
document.body.offsetHeight;
document.documentElement.className = "";
}
</script>
</head>
<body id="body" onload="boom();">
<div>1</div>
<div>2</div>
</body>
</html>
|