diff --git a/modules/ve/dm/nodes/ve.dm.AlienNode.js b/modules/ve/dm/nodes/ve.dm.AlienNode.js index 16bfcfbcc1..880dca7bed 100644 --- a/modules/ve/dm/nodes/ve.dm.AlienNode.js +++ b/modules/ve/dm/nodes/ve.dm.AlienNode.js @@ -37,8 +37,7 @@ ve.dm.AlienNode.static.name = 'alien'; ve.dm.AlienNode.static.storeHtmlAttributes = false; -// TODO: Develop better method to test for generated content -ve.dm.AlienNode.static.generatedContent = true; +ve.dm.AlienNode.static.enableAboutGrouping = true; ve.dm.AlienNode.static.toDataElement = function ( domElements, converter ) { var isInline = this.isHybridInline( domElements, converter ), diff --git a/modules/ve/dm/nodes/ve.dm.GeneratedContentNode.js b/modules/ve/dm/nodes/ve.dm.GeneratedContentNode.js index 9ef85187f4..bba784b4a8 100644 --- a/modules/ve/dm/nodes/ve.dm.GeneratedContentNode.js +++ b/modules/ve/dm/nodes/ve.dm.GeneratedContentNode.js @@ -17,14 +17,10 @@ ve.dm.GeneratedContentNode = function VeDmGeneratedContentNode() { }; -/* Static members */ +/* Static methods */ ve.dm.GeneratedContentNode.static = {}; -ve.dm.GeneratedContentNode.static.matchTagNames = []; - -ve.dm.GeneratedContentNode.static.enableAboutGrouping = true; - /** * Store HTML of DOM elements, hashed on data element * @param {Object} dataElement Data element diff --git a/modules/ve/dm/nodes/ve.dm.MWTransclusionNode.js b/modules/ve/dm/nodes/ve.dm.MWTransclusionNode.js index b6d96c1747..94afb0d084 100644 --- a/modules/ve/dm/nodes/ve.dm.MWTransclusionNode.js +++ b/modules/ve/dm/nodes/ve.dm.MWTransclusionNode.js @@ -51,6 +51,8 @@ ve.dm.MWTransclusionNode.static.matchFunction = function ( domElement ) { ) !== -1; }; +ve.dm.MWTransclusionNode.static.enableAboutGrouping = true; + ve.dm.MWTransclusionNode.static.getHashObject = function ( dataElement ) { return { type: dataElement.type,