Juri
Juri

Reputation: 331

Which web browsers support the HTML5 attribute sortable?

I did not find the answer on the Consortium's official website (https://www.w3.org/TR/html5/tabular-data.html#the-table-element - https://www.w3.org/TR/2014/WD-html51-20140617/tabular-data.html#attr-table-sortable) and neither on the Mozilla developer web site (https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes).

Thanks for your time.

<table sortable>
  <tr>
   <th sorted> 1 </th>
   <th sorted> 2 </th>
  </tr>
  <tr>
   <td> aaa </td>
   <td> bbb </td>
  </tr>
  <tr>
   <td> xxx </td>
   <td> zzz </td>
 </tr>
</table>

Upvotes: 3

Views: 411

Answers (2)

sideshowbarker
sideshowbarker

Reputation: 88205

The table sorting model that had been in the HTML spec was removed in January 2016.

So it’s not correct that sortable is an attribute that’s part of an “upcoming HTML version and is not officially released”. The W3C HTML 5.1 spec is a final Recommendation that has since been superseded and anyway the sortable attribute was not in HTML 5.1.

No browsers ever natively supported the sortable attribute and none ever will unless/until it ends up being re-specified again later. The reason it’s not included in http://caniuse.com/—and never was included in it—is that caniuse.com doesn’t track features that have zero browser support.

Upvotes: 3

Rehban Khatri
Rehban Khatri

Reputation: 954

sortable is a was an attribute in HTML 5.1 that was supposed to be included earlier but now it is deprecated. So no browsers currently supports it. For more information, refer this

Upvotes: 6

Related Questions