Merge "data-ve-ignore attribute for elements to be complete ignored by the converter"

This commit is contained in:
jenkins-bot 2013-12-13 19:36:55 +00:00 committed by Gerrit Code Review
commit 9e9243e51f

View file

@ -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;