730562-1.html (487B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <script> 6 7 function boom() 8 { 9 // Force frame construction 10 document.documentElement.offsetHeight; 11 12 // A dynamic change 13 var x = document.getElementById("x"); 14 x.firstChild.remove(); 15 x.appendChild(document.createTextNode("\n\n\n")); 16 } 17 18 </script> 19 </head> 20 <body onload="boom();"> 21 <div style="direction: rtl; white-space: pre;"><span style="outline: 1px solid red;" id="x"> 22 :p</span></div> 23 </body> 24 </html>