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

@trusktr  My point is that HTML and JS are not the same language, so HTML doesn't 'owe' any conceptual tip of the hat to JS.  In that light, <button is="my-button"> is quite natural for HTML authors.

Regarding 'Easier to understand', it is perhaps true (of your example) for JS programmers, but when you start writing for the Web you don't actually start with JS, you start with HTML, so 'easier to understand' probably matters more for the true novice more than someone who has progressed to object-oriented JS, and should therefore emphasize HTML syntax.

If the JS fails to execute in the <button is="my-button"> example, for whatever reason, you still get a button, not to mention the accessibility considerations others have raised and can speak to better than I can.

I wrote a [post](http://maps4html.github.io/Web-Map-Custom-Element/blog/progressive-web-maps.html) about this, with a working example, using the <map is="web-map"> custom element.

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

Received on Monday, 5 December 2016 15:48:38 UTC