Skip to content

Commit 1c2529e

Browse files
committed
Make sure tagName exists before using it. (mathjax/MathJax#3461)
1 parent 27c47f3 commit 1c2529e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ts/a11y/explorer/KeyExplorer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1461,6 +1461,7 @@ export class SpeechExplorer
14611461
if (
14621462
child !== this.speech &&
14631463
child !== this.img &&
1464+
child.tagName &&
14641465
child.tagName.toLowerCase() !== 'rect'
14651466
) {
14661467
const { left, right, top, bottom } = child.getBoundingClientRect();

0 commit comments

Comments
 (0)