From 75c6814a5d45e628e1db72528a3db923bfb6b9c1 Mon Sep 17 00:00:00 2001 From: zorkow Date: Wed, 6 Mar 2024 16:40:33 +0100 Subject: [PATCH] Fix maction tagname lookup error. --- ts/highlighter/chtml_highlighter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/highlighter/chtml_highlighter.ts b/ts/highlighter/chtml_highlighter.ts index 0df5a87ec..8c7179294 100644 --- a/ts/highlighter/chtml_highlighter.ts +++ b/ts/highlighter/chtml_highlighter.ts @@ -32,7 +32,7 @@ export class ChtmlHighlighter extends CssHighlighter { * @override */ public isMactionNode(node: HTMLElement) { - return node.tagName.toUpperCase() === this.mactionName.toUpperCase(); + return node.tagName?.toUpperCase() === this.mactionName.toUpperCase(); } /**