Skip to content

Commit e2c5e00

Browse files
authored
Merge pull request #1439 from mathjax/issue3532
Fix isEmpty to work with partially complete `msubsup` elements with empty bases. (mathjax/MathJax#3532)
2 parents 5fb352e + 11a46f0 commit e2c5e00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ts/core/MmlTree/MmlNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ export abstract class AbstractMmlNode
546546
*/
547547
public get isEmpty(): boolean {
548548
for (const child of this.childNodes) {
549-
if (!child.isEmpty) return false;
549+
if (child && !child.isEmpty) return false;
550550
}
551551
return true;
552552
}

0 commit comments

Comments
 (0)