diff --git a/modules/ve-math/ve.ce.MWMathNode.js b/modules/ve-math/ve.ce.MWMathNode.js index f126143..7031d4f 100644 --- a/modules/ve-math/ve.ce.MWMathNode.js +++ b/modules/ve-math/ve.ce.MWMathNode.js @@ -49,7 +49,7 @@ ve.ce.MWMathNode.prototype.onSetup = function () { * @inheritdoc ve.ce.GeneratedContentNode */ ve.ce.MWMathNode.prototype.validateGeneratedContents = function ( $element ) { - return !( $element.find( '.error' ).length ); + return !( $element.find( '.error' ).addBack( '.error' ).length ); }; /* Registration */