blob: 3b6ca3bf3c6ed774829a961c315ff9dc1e22a1a8 (
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
|
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script>
function boom()
{
// Force frame construction
document.documentElement.offsetHeight;
// A dynamic change
var x = document.getElementById("x");
x.removeChild(x.firstChild);
x.appendChild(document.createTextNode("\n\n\n"));
}
</script>
</head>
<body onload="boom();">
<div style="direction: rtl; white-space: pre;"><span style="outline: 1px solid red;" id="x">
:p</span></div>
</body>
</html>
|