Inez has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/70934


Change subject: Get rid of mw-figcaption class (Parsoid does not use it anymore)
......................................................................

Get rid of mw-figcaption class (Parsoid does not use it anymore)

Change-Id: Id4aed15b7db6a3a42bb75637c3d31b52677a8a4d
---
M modules/ve/dm/nodes/ve.dm.MWImageCaptionNode.js
1 file changed, 1 insertion(+), 6 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor 
refs/changes/34/70934/1

diff --git a/modules/ve/dm/nodes/ve.dm.MWImageCaptionNode.js 
b/modules/ve/dm/nodes/ve.dm.MWImageCaptionNode.js
index 91477f2..d86138f 100644
--- a/modules/ve/dm/nodes/ve.dm.MWImageCaptionNode.js
+++ b/modules/ve/dm/nodes/ve.dm.MWImageCaptionNode.js
@@ -33,12 +33,7 @@
 };
 
 ve.dm.MWImageCaptionNode.static.toDomElements = function ( dataElement, doc ) {
-       // TODO: Parsoid requires figcaption tag to have class mw-figcaption 
set in order to be
-       // serialized correctly, however this is going to change in the future 
and then this code can
-       // be simplified.
-       var figcaption = doc.createElement( 'figcaption' );
-       figcaption.setAttribute( 'class', 'mw-figcaption' );
-       return [ figcaption ];
+       return [ doc.createElement( 'figcaption' ) ];
 };
 
 /* Registration */

-- 
To view, visit https://gerrit.wikimedia.org/r/70934
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id4aed15b7db6a3a42bb75637c3d31b52677a8a4d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Inez <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to