Skip to content

Commit ed27170

Browse files
authored
Merge pull request #1386 from mathjax/issue3461
Make sure tagName exists before using it. (mathjax/MathJax#3461)
2 parents c9c6967 + 1c2529e commit ed27170

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
@@ -1555,6 +1555,7 @@ export class SpeechExplorer
15551555
if (
15561556
child !== this.speech &&
15571557
child !== this.img &&
1558+
child.tagName &&
15581559
child.tagName.toLowerCase() !== 'rect'
15591560
) {
15601561
const { left, right, top, bottom } = child.getBoundingClientRect();

0 commit comments

Comments
 (0)