<!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.parentNode.removeChild(x); } </script> </head> <body onload="boom();"> <div><span>١<span id="x"></span>٣</span>ت</div> </body> </html>