2013-08-07 05:21:10 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor DataModel MWAlienExtensionNode class.
|
|
|
|
*
|
2015-01-08 23:54:03 +00:00
|
|
|
* @copyright 2011-2015 VisualEditor Team and others; see AUTHORS.txt
|
2013-08-07 05:21:10 +00:00
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2014-02-07 17:28:54 +00:00
|
|
|
* DataModel MediaWiki alien extension node.
|
2013-08-07 05:21:10 +00:00
|
|
|
*
|
|
|
|
* @class
|
2014-05-20 11:56:37 +00:00
|
|
|
* @extends ve.dm.MWBlockExtensionNode
|
2013-08-07 05:21:10 +00:00
|
|
|
*
|
|
|
|
* @constructor
|
|
|
|
*/
|
2014-06-07 03:17:26 +00:00
|
|
|
ve.dm.MWAlienExtensionNode = function VeDmMWAlienExtensionNode() {
|
2013-08-07 05:21:10 +00:00
|
|
|
// Parent constructor
|
2014-05-20 11:56:37 +00:00
|
|
|
ve.dm.MWBlockExtensionNode.apply( this, arguments );
|
2013-08-07 05:21:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Inheritance */
|
|
|
|
|
2014-05-20 11:56:37 +00:00
|
|
|
OO.inheritClass( ve.dm.MWAlienExtensionNode, ve.dm.MWBlockExtensionNode );
|
2013-08-07 05:21:10 +00:00
|
|
|
|
|
|
|
/* Static members */
|
|
|
|
|
|
|
|
ve.dm.MWAlienExtensionNode.static.name = 'mwAlienExtension';
|
|
|
|
|
|
|
|
ve.dm.MWAlienExtensionNode.static.getMatchRdfaTypes = function () {
|
|
|
|
return [
|
|
|
|
/^mw:Extension/
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
ve.dm.MWAlienExtensionNode.static.tagName = 'div';
|
|
|
|
|
2013-08-15 09:40:58 +00:00
|
|
|
/** */
|
2013-08-30 23:23:18 +00:00
|
|
|
ve.dm.MWAlienExtensionNode.static.getExtensionName = function ( dataElement ) {
|
|
|
|
return dataElement.attributes.mw.name;
|
2013-08-15 09:40:58 +00:00
|
|
|
};
|
|
|
|
|
2013-08-07 05:21:10 +00:00
|
|
|
/* Registration */
|
|
|
|
|
|
|
|
ve.dm.modelRegistry.register( ve.dm.MWAlienExtensionNode );
|