We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0719c0 commit ef85636Copy full SHA for ef85636
packages/runtime-core/src/renderer.ts
@@ -585,11 +585,13 @@ function baseCreateRenderer(
585
slotScopeIds: string[] | null,
586
optimized: boolean
587
) => {
588
- if (n2.type === 'svg') {
589
- namespace = 'svg'
590
- }
591
- if ((n2.type as string) === 'math') {
592
- namespace = 'mathml'
+ switch (n2.type) {
+ case 'svg':
+ namespace = 'svg'
+ break
+ case 'math':
593
+ namespace = 'mathml'
594
595
}
596
597
if (n1 == null) {
0 commit comments