0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2025-01-05 06:10:07 -05:00

<br>s should be added to every block in Webkit/Gecko

This commit is contained in:
Neil Jenkins 2011-11-16 19:24:43 +11:00
parent 3068c496c9
commit f1a714a179

View file

@ -389,7 +389,7 @@ implement( Element, {
el.parentNode.insertBefore( doc.createTextNode( '' ), el ); el.parentNode.insertBefore( doc.createTextNode( '' ), el );
} }
} }
else if ( !el.textContent && !el.querySelector( 'BR' ) ) { else if ( !el.querySelector( 'BR' ) ) {
fixer = doc.createElement( 'BR' ); fixer = doc.createElement( 'BR' );
while ( ( child = el.lastElementChild ) && !child.isInline() ) { while ( ( child = el.lastElementChild ) && !child.isInline() ) {
el = child; el = child;