E-mail List Archives
Thread: Proper assignment of ARIA Roles for a menu
Number of posts in this thread: 1 (In chronological order)
From: Ryan E. Benson
Date: Fri, Aug 31 2012 1:49PM
Subject: Proper assignment of ARIA Roles for a menu
No previous message | No next message
Hi all,
I am working with somebody who wants to use some ARIA, but they are
implementing it incorrectly from what I can tell. Should it look like:
<div id=nav role=navigation>
<ul role=menubar>
<li role=menuitem>{name}</li>
<li role=menuitem aria-haspopup=true aria-labelledby=menu1Title>
<span id=menu1Title>Menu</span>
<ul role=menu>
<li role=menuitem><a>link</a></li>
<li role=menuitem><a>link</a></li>
<li role=menuitem><a>link</a></li>
</ul>
</li>
</ul>
</div>
They have role=navigation on the unordered list where I have the
menubar role then each list item with a link has a role of button.
TIA
--
Ryan E. Benson