Re: [w3c/webcomponents] The is="" attribute is confusing? Maybe we should encourage only ES6 class-based extension. (#509)

@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