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

Yes, the old style HTC/XBL do not need `is` attribute. Here is the problem list of the old style:

1. No declarative information in markups, so it's not easy to recognize CE, not only agents like search engines but also developers.
1. Attach behavior via stylesheets is rejected by many members of CSS WG, at least in year 1999 (I don't know what the current CSS experts thought.) IMO, It's not clear how one element can have many behaviors attached, and how cascade mechanism works for `behavior: add(xxx)`. 
1. Selectors can be very complex, someone may write `customElements.define('.component-scope .parent-component.foo.bar > .my-button:not(:disabled)', MyButton)` which is terrible and harm to performance. Of coz we can limit it, just like `select` attribute on `content` element in ShadowDOM V0, but I had to say such special rule is confusing.


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

Received on Monday, 15 May 2017 04:24:20 UTC