Role Attribute 1.0 CR 12 July 2012: Outdated example of "good, appropriate use of the role attribute"

Re: Role Attribute 1.0: W3C Candidate Recommendation 12 July 2012
http://www.w3.org/TR/2012/CR-role-attribute-20120712/

This draft says:

> Although the role attribute may be used to add semantics to an element, authors should use elements with inherent semantics, such as p, rather than layering semantics on semantically neutral elements, such as div role="paragraph".
>
> The following is an example of a good, appropriate use of the role attribute:
>
> <ul role="navigation">
>    <li href="downloads">Downloads</li>
>    <li href="docs">Documentation</li>
>    <li href="news">News</li>
> </ul>

HTML5 includes an element with these inherent semantics ("nav" element):

    http://dev.w3.org/html5/spec/the-nav-element.html#the-nav-element

So this is no longer a "good, appropriate use" according to the
preceding criteria of preferring elements with inherent semantics.

Suggest replacing with an example using role to expose semantics HTML5
does not natively support.

--
Benjamin Hawkes-Lewis

Received on Friday, 13 July 2012 08:19:02 UTC