2013-08-07 05:21:10 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor DataModel MWAlienExtensionNode class.
|
|
|
|
*
|
|
|
|
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
|
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* DataModel MediaWiki math node.
|
|
|
|
*
|
|
|
|
* @class
|
|
|
|
* @extends ve.dm.MWExtensionNode
|
|
|
|
*
|
|
|
|
* @constructor
|
|
|
|
*/
|
|
|
|
ve.dm.MWAlienExtensionNode = function VeDmMWAlienExtensionNode( length, element ) {
|
|
|
|
// Parent constructor
|
|
|
|
ve.dm.MWExtensionNode.call( this, 0, element );
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Inheritance */
|
|
|
|
|
|
|
|
ve.inheritClass( ve.dm.MWAlienExtensionNode, ve.dm.MWExtensionNode );
|
|
|
|
|
|
|
|
/* 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 );
|