Skip to content

Commit 917134d

Browse files
committedFeb 18, 2016
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

+4-1
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)