Re: Implied ARIA Roles

"Michael[tm] Smith" <[email protected]>
Newsgroups gmane.org.w3c.validator
Message-ID <[email protected]>
Steve Faulkner <[email protected]>, 2014-08-03 14:40 +0100:

> Hi Craig I have resolved the related spec bug you filed
> https://www.w3.org/Bugs/Public/show_bug.cgi?id=26418
> 
> Mike - the addition of the implied roles for <th scope=col> and <th
> scope=row> clarify that the presence of aria-sort on either does not need
> to be used in conjunction with any aria roles when used on <th scope=col>
> or <th scope=row>. Can you modify the validator conformance checking to
> reflect this?

I updated that validator sources and the change has been pushed to both the
W3C validator and to html5.validator.nu/validator.nu

It allows aria-sort for <th> regardless of whether it has a scope attribute
or not.

  --Mike

> On 22 July 2014 13:50, Craig Francis <[email protected]> wrote:
> 
> > Hi,
> >
> > When validating a document with an @aria-sort attribute, the validator
> > requires that a @role should also be specified.
> >
> > As I'm adding this on a <th scope="col">, isn't this already implied by
> > the markup?
> >
> > http://www.w3.org/TR/wai-aria/roles#columnheader
> >
> > Base Concept: HTML th[scope="col"]
> >
> > An example HTML table is below, where I realise the <span> isn't
> > necessarily the best approach (trying to avoid an <img> which will add
> > additional HTTP requests)... where I am hoping that in time the @aria-sort
> > attribute will be supported by UA's and will provide a much better
> > interface.
> >
> > I've also brought this issue up on SO:
> >
> >
> > http://stackoverflow.com/questions/24863531/using-aria-sort-in-validated-html5
> >
> > Craig
> >
> >
> >
> >
> > <!DOCTYPE html>
> > <html lang="en-GB">
> > <head>
> >   <meta charset="UTF-8" />
> >   <title>ARIA Sort</title>
> > </head>
> > <body>
> >
> >   <table>
> >     <thead>
> >       <tr>
> >         <th scope="col" aria-sort="none"><a href="#">Name&#xA0;<span
> > title="Sort">&#9650;</span></a></th>
> >         <th scope="col" aria-sort="ascending"><a href="#">Score&#xA0;<span
> > title="Ascending">&#9650;</span></a></th>
> >       </tr>
> >     </thead>
> >     <tbody>
> >       <tr>
> >         <th scope="row">A</th>
> >         <td>1</td>
> >       </tr>
> >     </tbody>
> >   </table>
> >
> >   <table role="grid">
> >     <thead>
> >       <tr role="row">
> >         <th scope="col" role="columnheader" aria-sort="none"><a
> > href="#">Name&#xA0;<span title="Sort">&#9650;</span></a></th>
> >         <th scope="col" role="columnheader" aria-sort="ascending"><a
> > href="#">Score&#xA0;<span title="Ascending">&#9650;</span></a></th>
> >       </tr>
> >     </thead>
> >     <tbody>
> >       <tr role="row">
> >         <th scope="row" role="rowheader">A</th>
> >         <td role="gridcell">1</td>
> >       </tr>
> >     </tbody>
> >   </table>
> >
> > </body>
> >

-- 
Michael[tm] Smith http://people.w3.org/mike
signature.asc (application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAEBCgAGBQJT8aeKAAoJEIfRdHe8OkuVldAQAKGV1UNtFKJ3FT+sE0+fI1pz
o6qxMFWwyqCHaY6GRRXzoFa0FKbzO2y4ZAgLkHFMj++fnpXMSSDl4Zp7LX+CxEMu
B9ZFjvYtuE96vV1M86sPdQq3uZNYppyoOE0TrR4jxVELemNqx2SSrsDR5v72J8ga
omtqPOLP2s3wo9Mr7Tv6KoVRpJezCZ9MWyasPJytmG+4p3D7T7F+8dym/MsfXnEi
ADG8NqiRO17Gt/asRNXIR7BeG6x4qEd9uKZVApOY5GZZmbBUP05dnKch6upRwqc2
S2e5dfEEkUMYyEwbejG/ML/0wGUFSFZBgo7+HgycPpkEwMfwsslBaUQVZugM5Jyy
QlsIXYu4b1+8MUXpPlUr8O5WKVXnk1Ow6ZgH4+18o/1z/6Vs4e3hG4OjubX6cgLn
+6GgCfG8AfCVD76CPvBV3h7UzeX7Be8NxDLauLZDVjKPx7Z+PJVgE29CmQE8fmcl
QJmWKhcjq75syAL+N7b2kKO+Glj09xg7Bu8di/Eaxea4J/ieV37+v2YnXj2MmthA
KyW7GBslQRZ5MzqiWHFAs/SNn126P/T2ewlpmkXPX4F6mnZKzM+4Um9GqMnYcUEX
JmXQSooLDLrIbKerMJmIyTmrGradHO53+4XC5PSfdQZVnEwDgn9hdve3AxyLX4bT
zONYqUkQofKOCxkm2151
=jEGC
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.