diff --git a/modules/ve/dm/ve.dm.Converter.js b/modules/ve/dm/ve.dm.Converter.js index 9a5c222b22..4318487a1b 100644 --- a/modules/ve/dm/ve.dm.Converter.js +++ b/modules/ve/dm/ve.dm.Converter.js @@ -613,6 +613,9 @@ ve.dm.Converter.prototype.getDataFromDomSubtree = function ( domElement, wrapper childDomElement = domElement.childNodes[i]; switch ( childDomElement.nodeType ) { case Node.ELEMENT_NODE: + if ( childDomElement.getAttribute( 'data-ve-ignore' ) ) { + continue; + } aboutGroup = getAboutGroup( childDomElement ); modelName = this.modelRegistry.matchElement( childDomElement, aboutGroup.length > 1 ); modelClass = this.modelRegistry.lookup( modelName ) || ve.dm.AlienNode;