0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2024-12-22 07:13:08 -05:00

Normalise text nodes when setting initial HTML.

This commit is contained in:
Neil Jenkins 2011-11-03 12:09:39 +11:00
parent e8a917f321
commit 1792b66ac3

View file

@ -1226,6 +1226,9 @@ document.addEventListener( 'DOMContentLoaded', function () {
node.fixCursor();
}
// Normalise
frag.normalize();
// Remove existing body children
while ( child = body.lastChild ) {
body.removeChild( child );