Catrope has uploaded a new change for review. https://gerrit.wikimedia.org/r/50021
Change subject: Fix ModelRegistry stupidities ...................................................................... Fix ModelRegistry stupidities * Register mw: as an extension-specific type * Include 'property' as an RDFa type attribute Change-Id: Ia70708b76294815eb8eb8132048c33b0636380e9 --- M modules/ve/dm/ve.dm.ModelRegistry.js 1 file changed, 3 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor refs/changes/21/50021/1 diff --git a/modules/ve/dm/ve.dm.ModelRegistry.js b/modules/ve/dm/ve.dm.ModelRegistry.js index a063bbe..26aa572 100644 --- a/modules/ve/dm/ve.dm.ModelRegistry.js +++ b/modules/ve/dm/ve.dm.ModelRegistry.js @@ -169,7 +169,8 @@ ve.dm.ModelRegistry.prototype.matchElement = function ( element ) { var i, name, model, matches, winner, types, elementExtSpecificTypes, matchTypes, tag = element.nodeName.toLowerCase(), - typeAttr = element.getAttribute( 'typeof' ) || element.getAttribute( 'rel' ), + typeAttr = element.getAttribute( 'typeof' ) || element.getAttribute( 'rel' ) || + element.getAttribute( 'property' ), reg = this; function byRegistrationOrderDesc( a, b ) { @@ -311,5 +312,6 @@ /* Initialization */ ve.dm.modelRegistry = new ve.dm.ModelRegistry(); +ve.dm.modelRegistry.registerExtensionSpecificType( /^mw:/ ); } )( ve ); -- To view, visit https://gerrit.wikimedia.org/r/50021 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ia70708b76294815eb8eb8132048c33b0636380e9 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/VisualEditor Gerrit-Branch: master Gerrit-Owner: Catrope <roan.katt...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits