Skip to content

Commit 3370290

Browse files
committed
Return after removing the node, as there is no need to go futher in that case.
1 parent d653254 commit 3370290

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ts/a11y/explorer/Highlighter.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,7 @@ class SvgHighlighter extends AbstractHighlighter {
470470
const previous = node.previousSibling as HTMLElement;
471471
if (node.hasAttribute('data-sre-highlighter-bbox')) {
472472
node.remove();
473+
return;
473474
}
474475
node.removeAttribute('data-mjx-enclosed');
475476
if (previous && previous.hasAttribute('data-sre-highlighter-added')) {

0 commit comments

Comments
 (0)