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
|
|
|
*
|
2017-01-03 16:58:33 +00:00
|
|
|
* @copyright 2011-2017 VisualEditor Team and others; see AUTHORS.txt
|
2013-02-21 23:01:04 +00:00
|
|
|
* @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
|
|
|
|
*/
|
2016-08-22 21:44:59 +00:00
|
|
|
ve.dm.MWAlienMetaItem = function VeDmMWAlienMetaItem() {
|
2013-02-21 23:01:04 +00:00
|
|
|
// Parent constructor
|
2016-08-22 21:44:59 +00:00
|
|
|
ve.dm.MWAlienMetaItem.super.apply( this, arguments );
|
2013-02-21 23:01:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Inheritance */
|
|
|
|
|
2013-10-11 21:44:09 +00:00
|
|
|
OO.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-06-05 17:22:01 +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 );
|