ve.dm.Converter: Fix too-much-ascending bug in Converter.

Change-Id: I748003d316614717c8eaf58dcf5735246951532a
This commit is contained in:
Inez Korczyński 2013-06-05 14:04:42 -07:00
parent d2e64c5905
commit 5079bbae9a

View file

@ -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 ) ) {