@@ -42,21 +42,23 @@ function _createElement (
42
42
return emptyVNode ( )
43
43
}
44
44
if ( typeof tag === 'string' ) {
45
- let Ctor , ns
46
- if ( config . isReservedTag ( tag ) || ( ns = config . getTagNamespace ( tag ) ) ) {
45
+ let Ctor
46
+ if ( config . isReservedTag ( tag ) ) {
47
47
// platform built-in elements
48
48
return new VNode (
49
- tag , data , normalizeChildren ( children , ns ) ,
50
- undefined , undefined , ns , context , host
49
+ tag , data , normalizeChildren ( children ) ,
50
+ undefined , undefined , undefined , context , host
51
51
)
52
52
} else if ( ( Ctor = resolveAsset ( context . $options , 'components' , tag ) ) ) {
53
53
// component
54
54
return createComponent ( Ctor , data , parent , context , host , children , tag )
55
55
} else {
56
- // unknown element, but check at runtime because it may get assigned
57
- // a namespace when its parent normalizes children
56
+ // unknown or namespaced elements
57
+ // check at runtime because it may get assigned a namespace when its
58
+ // parent normalizes children
59
+ const ns = config . getTagNamespace ( tag )
58
60
return new VNode (
59
- tag , data , normalizeChildren ( children ) ,
61
+ tag , data , normalizeChildren ( children , ns ) ,
60
62
undefined , undefined , ns , context , host
61
63
)
62
64
}
0 commit comments