2013-02-21 23:01:04 +00:00
|
|
|
/*!
|
2013-03-21 19:18:52 +00:00
|
|
|
* VisualEditor DataModel MWAlienMetaItem class.
|
2013-02-21 23:01:04 +00:00
|
|
|
*
|
|
|
|
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
|
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* DataModel MW-specific meta item.
|
|
|
|
*
|
|
|
|
* @class
|
|
|
|
* @abstract
|
|
|
|
* @extends ve.dm.AlienMetaItem
|
|
|
|
* @constructor
|
|
|
|
* @param {Object} element Reference to element in meta-linmod
|
|
|
|
*/
|
2013-03-21 19:18:52 +00:00
|
|
|
ve.dm.MWAlienMetaItem = function VeDmMWAlienMetaItem( element ) {
|
2013-02-21 23:01:04 +00:00
|
|
|
// Parent constructor
|
|
|
|
ve.dm.AlienMetaItem.call( this, element );
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Inheritance */
|
|
|
|
|
2013-03-21 19:18:52 +00:00
|
|
|
ve.inheritClass( ve.dm.MWAlienMetaItem, ve.dm.AlienMetaItem );
|
2013-02-21 23:01:04 +00:00
|
|
|
|
|
|
|
/* Static Properties */
|
|
|
|
|
2013-05-28 11:31:41 +00:00
|
|
|
ve.dm.MWAlienMetaItem.static.name = 'mwAlienMeta';
|
2013-02-21 23:01:04 +00:00
|
|
|
|
2013-03-21 19:18:52 +00:00
|
|
|
ve.dm.MWAlienMetaItem.static.matchRdfaTypes = [ /^mw:/ ];
|
2013-02-21 23:01:04 +00:00
|
|
|
|
|
|
|
// toDataElement inherited from AlienMetaItem, will return regular alienMeta elements but
|
|
|
|
// that's fine. This class is only here so that <meta>/<link> tags with an mw: type are correctly
|
|
|
|
// mapped to AlienMetaItem rather than AlienNode.
|
|
|
|
|
|
|
|
/* Registration */
|
|
|
|
|
2013-03-21 19:18:52 +00:00
|
|
|
ve.dm.modelRegistry.register( ve.dm.MWAlienMetaItem );
|