File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -505,7 +505,7 @@ function installCompatMount(
505
505
506
506
let namespace : 'svg' | 'mathml' | undefined
507
507
if ( container instanceof SVGElement ) namespace = 'svg'
508
- if ( container instanceof MathMLElement ) namespace = 'mathml'
508
+ else if ( container instanceof MathMLElement ) namespace = 'mathml'
509
509
510
510
// HMR root reload
511
511
if ( __DEV__ ) {
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ export const createApp = ((...args) => {
102
102
container . innerHTML = ''
103
103
let namespace : 'svg' | 'mathml' | undefined
104
104
if ( container instanceof SVGElement ) namespace = 'svg'
105
- if ( container instanceof MathMLElement ) namespace = 'mathml'
105
+ else if ( container instanceof MathMLElement ) namespace = 'mathml'
106
106
const proxy = mount ( container , false , namespace )
107
107
if ( container instanceof Element ) {
108
108
container . removeAttribute ( 'v-cloak' )
@@ -128,7 +128,7 @@ export const createSSRApp = ((...args) => {
128
128
if ( container ) {
129
129
let namespace : 'svg' | 'mathml' | undefined
130
130
if ( container instanceof SVGElement ) namespace = 'svg'
131
- if ( container instanceof MathMLElement ) namespace = 'mathml'
131
+ else if ( container instanceof MathMLElement ) namespace = 'mathml'
132
132
return mount ( container , true , namespace )
133
133
}
134
134
}
You can’t perform that action at this time.
0 commit comments