diff --git a/modules/CommentController.js b/modules/CommentController.js index 62d6b590a..df449a2a0 100644 --- a/modules/CommentController.js +++ b/modules/CommentController.js @@ -484,6 +484,8 @@ CommentController.prototype.switchToVisual = function () { if ( html ) { doc = replyWidget.replyBodyWidget.target.parseDocument( html ); + // Remove RESTBase IDs (T253584) + mw.libs.ve.stripRestbaseIds( doc ); bodyChildren = Array.prototype.slice.call( doc.body.childNodes ); // There may be multiple lists when some lines are template generated bodyChildren.forEach( function ( child ) {