mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +00:00
ve.dm.Converter: Fix too-much-ascending bug in Converter.
Change-Id: I748003d316614717c8eaf58dcf5735246951532a
This commit is contained in:
parent
d2e64c5905
commit
5079bbae9a
|
@ -1263,17 +1263,6 @@ ve.dm.Converter.prototype.getDomSubtreeFromData = function ( data, container ) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// In case of nodes that handles own children ascend to parent node.
|
|
||||||
// It looks like the solution would be to avoid descending first ( so ascending
|
|
||||||
// wouldn't be needed ) but note that then code above for handling white spaces
|
|
||||||
// wouldn't execute correctly.
|
|
||||||
if (
|
|
||||||
ve.dm.nodeFactory.lookup( data[i].type ) &&
|
|
||||||
ve.dm.nodeFactory.doesNodeHandleOwnChildren( data[i].type )
|
|
||||||
) {
|
|
||||||
domElement = parentDomElement;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ve.isArray( dataElementOrSlice ) ) {
|
if ( ve.isArray( dataElementOrSlice ) ) {
|
||||||
|
|
Loading…
Reference in a new issue