0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2025-01-03 05:00:13 -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 );
}
}
else if ( !el.textContent && !el.querySelector( 'BR' ) ) {
else if ( !el.querySelector( 'BR' ) ) {
fixer = doc.createElement( 'BR' );
while ( ( child = el.lastElementChild ) && !child.isInline() ) {
el = child;