Skip to content

Commit

Permalink
Fix maction tagname lookup error.
Browse files Browse the repository at this point in the history
  • Loading branch information
zorkow committed Mar 6, 2024
1 parent 62f471e commit 75c6814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ts/highlighter/chtml_highlighter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

/**
Expand Down

0 comments on commit 75c6814

Please sign in to comment.