mirror of
https://github.com/fastmail/Squire.git
synced 2025-01-03 05:00:13 -05:00
Update to latest squire
This commit is contained in:
parent
76b8a06f77
commit
bfbec71507
2 changed files with 8 additions and 5 deletions
|
@ -3715,8 +3715,11 @@ var makeList = function ( self, frag, type ) {
|
|||
listItemAttrs = tagAttributes.li;
|
||||
|
||||
while ( node = walker.nextNode() ) {
|
||||
tag = node.parentNode.nodeName;
|
||||
if ( tag !== 'LI' ) {
|
||||
if ( node.parentNode.nodeName === 'LI' ) {
|
||||
node = node.parentNode;
|
||||
walker.currentNode = node.lastChild;
|
||||
}
|
||||
if ( node.nodeName !== 'LI' ) {
|
||||
newLi = self.createElement( 'LI', listItemAttrs );
|
||||
if ( node.dir ) {
|
||||
newLi.dir = node.dir;
|
||||
|
@ -3739,7 +3742,7 @@ var makeList = function ( self, frag, type ) {
|
|||
newLi.appendChild( empty( node ) );
|
||||
walker.currentNode = newLi;
|
||||
} else {
|
||||
node = node.parentNode.parentNode;
|
||||
node = node.parentNode;
|
||||
tag = node.nodeName;
|
||||
if ( tag !== type && ( /^[OU]L$/.test( tag ) ) ) {
|
||||
replaceWith( node,
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue