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

@trusktr However, how would that work when loading in a browser without custom-elements support, say `elinks`?  Like I want to display a basic table in it while still getting my enhanced table in javascript-capable browsers, or ripple buttons in javascript-capable browsers but still have a normal operational button in `elinks`?  There are many more examples than just this as well.  Your suggestion does not allow for progressive-enhancement.

What I want is this:
```html
<form blah="blorps">
  <input type="text" placeholder="Search" is="material-input" floating-label required blah="whatever-else"></input>
  <button type="submit" is="material-button" ripple></button>
</form>
<table is="material-table" sortable>
  <th>
    <td>Blah</td>
    ...
  </th>
  <tr is="material-table-details" show-on-hover>
    <td>Blah Description</td>
    ...
  </tr>
  <tr>
    <td>Some Blah value<td>
    ...
  </tr>
  ...
```
And all of the above should still, for example, work in `elinks` or work with no javascript enabled, it may not be pretty, but it should *work*, while being able to progressively enhance quickly on a full html5 web-browser

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

Received on Wednesday, 8 March 2017 18:50:18 UTC