mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Merge "data-ve-ignore attribute for elements to be complete ignored by the converter"
This commit is contained in:
commit
9e9243e51f
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue