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:
parent
e8a917f321
commit
1792b66ac3
1 changed files with 3 additions and 0 deletions
|
@ -1226,6 +1226,9 @@ document.addEventListener( 'DOMContentLoaded', function () {
|
||||||
node.fixCursor();
|
node.fixCursor();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Normalise
|
||||||
|
frag.normalize();
|
||||||
|
|
||||||
// Remove existing body children
|
// Remove existing body children
|
||||||
while ( child = body.lastChild ) {
|
while ( child = body.lastChild ) {
|
||||||
body.removeChild( child );
|
body.removeChild( child );
|
||||||
|
|
Loading…
Reference in a new issue