lundi 7 juillet 2014

WAI-ARIA - selected menuitem


Vote count:

0




I'm doing some code clean up / validation in a web site, and have run into an issue.


According to the WAI-ARIA spec, the state aria-selected is not allowed on the role menuitem: http://ift.tt/1hGzxP2. Neither can I find any state for menuitem that seem to mark the menuitem as selected: http://ift.tt/1jYt3f1.


The menustructure is like this:



<nav role="navigation">
<ul role="menubar">
<li role="menuitem" aria-selected="true">
<a href="currentpage">Current page</a>
</li>
<li role="menuitem">
<a href="anotherpage">Another page</a>
</li>
</ul>
</nav>


What would be the correct implementation of a selected menuitem?



asked 39 secs ago






Aucun commentaire:

Enregistrer un commentaire