|
|
@@ -53,14 +53,19 @@ export function renderElement (
|
|
|
let Ctor
|
|
|
if (config.isReservedTag(tag)) {
|
|
|
return new VNode(
|
|
|
- tag, data, undefined,
|
|
|
- undefined, undefined, namespace, context, host
|
|
|
+ tag, data,
|
|
|
+ undefined, undefined, undefined,
|
|
|
+ namespace, context, host
|
|
|
)
|
|
|
} else if ((Ctor = resolveAsset(context.$options, 'components', tag))) {
|
|
|
return createComponent(Ctor, data, parent, context, host, tag)
|
|
|
} else {
|
|
|
if (process.env.NODE_ENV !== 'production') {
|
|
|
- if (!namespace && config.isUnknownElement(tag)) {
|
|
|
+ if (
|
|
|
+ !namespace &&
|
|
|
+ !(config.ignoredElements && config.ignoredElements.indexOf(tag) > -1) &&
|
|
|
+ config.isUnknownElement(tag)
|
|
|
+ ) {
|
|
|
warn(
|
|
|
'Unknown custom element: <' + tag + '> - did you ' +
|
|
|
'register the component correctly? For recursive components, ' +
|
|
|
@@ -69,8 +74,9 @@ export function renderElement (
|
|
|
}
|
|
|
}
|
|
|
return new VNode(
|
|
|
- tag, data, undefined,
|
|
|
- undefined, undefined, namespace, context, host
|
|
|
+ tag, data,
|
|
|
+ undefined, undefined, undefined,
|
|
|
+ namespace, context, host
|
|
|
)
|
|
|
}
|
|
|
} else {
|