mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-09-23 18:29:39 +00:00
Fix the check for the error class in generated content
Check the root of the generated content for the 'error' class as well as the children. Change-Id: I29044b5bfc33ce250c415a54d6c56f0620680658
This commit is contained in:
parent
7241d5d3a7
commit
d81a1ff7ad
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue