From 1c2529e4725147cd803b02fbd0d3a7903ce964cd Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Tue, 4 Nov 2025 08:51:04 -0500 Subject: [PATCH] Make sure tagName exists before using it. (mathjax/MathJax#3461) --- ts/a11y/explorer/KeyExplorer.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/ts/a11y/explorer/KeyExplorer.ts b/ts/a11y/explorer/KeyExplorer.ts index ef52735d6..33c1b9406 100644 --- a/ts/a11y/explorer/KeyExplorer.ts +++ b/ts/a11y/explorer/KeyExplorer.ts @@ -1461,6 +1461,7 @@ export class SpeechExplorer if ( child !== this.speech && child !== this.img && + child.tagName && child.tagName.toLowerCase() !== 'rect' ) { const { left, right, top, bottom } = child.getBoundingClientRect();