-
Notifications
You must be signed in to change notification settings - Fork 491
instance.constructor property is wrong in Safari and IE #215
Comments
IE doesn't work particularly well with unknown element types and marks them as |
I was attempting to infer the constructor of an instance using the Sounds like this is expected and unavoidable, let's document it somewhere. |
Documented in FAQs section of README.md. |
Is there any recommended way currently to get the constructor class of a CustomElement? |
Is this relevant for |
I saw today that custom elements created with webcomponents.js have a
constructor
property ofHTMLUnknownElementConstructor
in Safari andHTMLUnknownElement
in IE.Is this an unavoidable side-effect of the polyfill? I would expect it to be the same constructor returned by
document.registerElement
.Test code:
The text was updated successfully, but these errors were encountered: