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 23aa427 commit 13e0335Copy full SHA for 13e0335
src/util/component.js
@@ -21,8 +21,15 @@ exports.checkComponent = function (el, options) {
21
if (is) {
22
return is
23
} else if (process.env.NODE_ENV !== 'production') {
24
- if (tag.indexOf('-') > -1 ||
25
- /HTMLUnknownElement/.test(Object.prototype.toString.call(el))) {
+ if (
+ tag.indexOf('-') > -1 ||
26
+ (
27
+ /HTMLUnknownElement/.test(el.toString()) &&
28
+ // Chrome returns unknown for several HTML5 elements.
29
+ // https://code.google.com/p/chromium/issues/detail?id=540526
30
+ !/^(data|time|rtc|rb)$/.test(tag)
31
+ )
32
+ ) {
33
_.warn(
34
'Unknown custom element: <' + tag + '> - did you ' +
35
'register the component correctly?'
0 commit comments