- From: Andrea Giammarchi <notifications@github.com>
- Date: Fri, 19 Oct 2018 21:56:21 +0000 (UTC)
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 19 October 2018 21:56:43 UTC
@wanttofly88 AFAIK Chrome shipped builtins extends already and Firefox shipped those too. ```js class MyButton extends HTMLButtonElement {} customElements.define('my-button', MyButton, {extends: 'button'}); document.body.appendChild( new MyButton ).textContent = 'click me'; ``` You can see that element is both a button and with an attribute `is="buton"` so, at this point, I might just go ahead and create a polyfill for Safari/WebKit only until they realize it's better native than poly filled. -- 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/509#issuecomment-431511270
Received on Friday, 19 October 2018 21:56:43 UTC