Skip to content

Commit 11a46f0

Browse files
committed
Fix isEmpty to work with partially complete msubsup elements with empty bases. (mathjax/MathJax#3532)
1 parent 5caee44 commit 11a46f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)