<!DOCTYPE html> <html> <body onload="document.getElementById('a').lastChild.appendData('4');"> <div id="a" style="position: absolute;"><span><span style="white-space: pre;"> 1 2</span> 3</span> </div> </body> </html>