Skip to content

Commit 12aa86c

Browse files
committed
fix: improve namespace handling for SVG and MathML tags
1 parent 1b28566 commit 12aa86c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/compiler-dom/src/parserOptions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ export const parserOptions: ParserOptions = {
5757
}
5858

5959
if (ns === Namespaces.HTML) {
60-
if (tag === 'svg') {
60+
if (isSVGTag(tag)) {
6161
return Namespaces.SVG
6262
}
63-
if (tag === 'math') {
63+
if (isMathMLTag(tag)) {
6464
return Namespaces.MATH_ML
6565
}
6666
}

0 commit comments

Comments
 (0)