- From: Ryosuke Niwa <notifications@github.com>
- Date: Mon, 21 Mar 2016 20:59:40 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
Received on Tuesday, 22 March 2016 04:00:09 UTC
`HTMLElement.call(this)` would not work but `Reflect.construct(HTMLElement, [], FlagIcon)` would. All browsers that support custom elements v1 API would support `Reflect.construct`. The contrapositive of that statement will be that all browsers that don't support `Reflect.construct` would not support custom elements v1. So, you can write a wrapper around it which calls `Reflect.construct` to use native support for custom elements on "modern" browsers, and use custom elements polyfill (e.g. setting `__proto__`) on others. --- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/webcomponents/issues/423#issuecomment-199628425
Received on Tuesday, 22 March 2016 04:00:09 UTC