mediawiki-extensions-Visual.../modules/ve-mw/dm/metaitems/ve.dm.MWAlienMetaItem.js
Ed Sanders d42a0772bb Move verbose copyright message to AUTHORS.txt
Avoids having to update the date in every file every year,
which we stopped doing.

Change-Id: I7bf7aa0937eef911e00772470091753a7b06fd3d
2023-12-01 16:07:39 +00:00

42 lines
1.1 KiB
JavaScript

/*!
* VisualEditor DataModel MWAlienMetaItem class.
*
* @copyright 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
*/
ve.dm.MWAlienMetaItem = function VeDmMWAlienMetaItem() {
// Parent constructor
ve.dm.MWAlienMetaItem.super.apply( this, arguments );
};
/* Inheritance */
OO.inheritClass( ve.dm.MWAlienMetaItem, ve.dm.AlienMetaItem );
/* Static Properties */
ve.dm.MWAlienMetaItem.static.name = 'mwAlienMeta';
ve.dm.MWAlienMetaItem.static.matchRdfaTypes = [
// HACK: Avoid matching things that are better handled by MWAlienExtensionNode or MWIncludesNode or MWAnnotationNode
/^mw:(?!Extension|Includes|Annotation)/
];
// 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 */
ve.dm.modelRegistry.register( ve.dm.MWAlienMetaItem );