-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aria-sort
forces role="columnheader"
or rowheader
Validation throws error on <th>
#592
Comments
Just wondering, but i'm guessing that scope is not really affecting this either is it ? Should it ? https://www.w3.org/TR/wai-aria-1.1/#columnheader I guess it should.. It's not super explicit. Wonder what most the software does on this front. I tested:
|
And on that note. What about thead ? |
I think scope doesn't do that much these days, but its good to know that Safari changes the role to column header instead of the unhelpful We "could" say:
I think we should do that, but that still requires the author to add the I think the addition a new |
Also relevant: https://www.w3.org/TR/WCAG20-TECHS/H63.html |
@hartman We wrote that technique about 15 years ago, in the early days of WCAG. Screen readers have largely overcome the need for scope except in limited situations. |
Looks like HTML-AAM was updated to map |
The way
aria-sort
it is written, it is invalid HTML to rely on the<th>
like this:<th aria-sort="acsending">
There is a thread here:
w3c/html#909
@stevefaulkner
@sideshowbarker
Said the issue is with wai-aria. Here's the issue:
aria-sort
requiresrole="columnheader"
orrowheader
<th>
torole="cell"
which provides no appreciable semantics to distinguish a header from a data cell, forcing the author to userole="columnheader"
orrowheader
this is an extra step for authors.role="tableheader"
. This would be an optional role to the more specificrowheader
andcolumnheader
.<th>
torole="tableheader"
.<th aria-sort="ascending">
without burdening them with a role, because the<th>
semantics would be sufficient.The first rule of ARIA is to use generic HTML when possible. It seems with this minor tweak, we could make it easier for authors to
use aria-sort
. There are no implications on screen readers which already understand what theth
does. They ignore the unhelpfulrole="cell"
mapping in the API.The text was updated successfully, but these errors were encountered: