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

@oleersoy maybe you haven't realized that this basic case breaks already:

```js
class MyButton extends HTMLButtonElement {}
new MyButton();
```

When we say _native extends matters_ we mean also the basic ability to extend native functionality inheriting from them.

At this stage only `HTMLElement` is subclassable, everything else is plain broken.

It's like being able to extend `Object` but not `Array` ... if you are happy with that, I am happy for you ... but logically speaking, nobody should be happy about such weirdo-breaking situation.

-- 
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-265207875

Received on Tuesday, 6 December 2016 17:12:35 UTC