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

> You're entitled to the opinion that using is

Thanks for letting me know that I'm entitled to my opinion.  That was very helpful.

> with a button is not useful, but is= is still the only way to create a subclass of HTMLTemplateElement that works

What do you mean by works.  Do you have demo?

> when it's added to the DOM before the subclass definition is loaded.

So the subclass, which is the actual implementation of what we are trying to run, but has not yet been loaded, works?

> Right now, inheritance without is= is impossible.

How do you explain that this works then:

#### Javascript
``` javascript
customElements.define('fancy-drawer', FancyDrawer);
```

#### HTML
``` html
<fancy-drawer></fancy-drawer>
```

> possibly by suggesting an alternative

See above.

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

Received on Tuesday, 8 November 2016 15:06:38 UTC