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

> accounts to come up with solution that is broad-sweeping. The use case:
Allow developers to build custom elements with all the same affordances,
conveniences, and behaviors to built-ins.

I don't think anyone disagrees with this.

> Requiring a user-story other than
this is a political movement that we all know will block or stall progress
on this issue for YEARS if not indefinitely.

We all want Aladdins Lamp.  Everyone agrees that this is the ultimate end game.  The point of having concrete real world user stories in addition to this end game is to ensure that we have real world test cases to verify progress against.  It's possible to approach this from both ends.  Personally I have a much easier time looking at something concrete, and then extrapolating what the API should be  from there.  For example take this boostrap markup from the [dropdown example](http://getbootstrap.com/components/#dropdowns-example):

``` html
<div class="dropdown">
  <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
    Dropdown
    <span class="caret"></span>
  </button>
  <ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
    <li><a href="#">Action</a></li>
    <li><a href="#">Another action</a></li>
    <li><a href="#">Something else here</a></li>
    <li role="separator" class="divider"></li>
    <li><a href="#">Separated link</a></li>
  </ul>
</div>
```

This would be far more elegant as a few custom elements.  So what is the API for creating those elements?  What native capabilities should these elements inherit?  Do they need everything that the native element has or is it better to use mixins to allow for precise features / behaviors?

The point of a simple concrete use case is not to stand in the way of Aladdins Lamp.  It's to evaluate ways to get the lamp.  Once we look at this long enough the best way to get the lamp will be obvious, but we have to start looking at concrete real world cases, otherwise we will be stuck in this Mad Hatter world forever.  GIVE ME THE LAMP!!!




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

Received on Thursday, 23 February 2017 07:10:57 UTC