8000 fix unknown element detection in Safari · lrenc/vue@917134d · GitHub
[go: up one dir, main page]

Skip to content 6603

Commit 917134d

Browse files
committed
fix unknown element detection in Safari
1 parent 142046f commit 917134d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/util/component.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ if (process.env.NODE_ENV !== 'production') {
1111
isUnknownElement = function (el, tag) {
1212
if (tag.indexOf('-') > -1) {
1313
// http://stackoverflow.com/a/28210364/1070244
14-
return el.constructor === window.HTMLElement
14+
return (
15+
el.constructor === window.HTMLUnknownElement ||
16+
el.constructor === window.HTMLElement
17+
)
1518
} else {
1619
return (
1720
/HTMLUnknownElement/.test(el.toString()) &&

0 commit comments

Comments
 (0)
0