[wai-aria-practices] aria-haspopup

Hi PFWG,

in "WAI-ARIA 1.0 Authoring Practices", section 10 -> menu 
(<http://www.w3.org/TR/wai-aria-practices/#menu>)

Table "Characteristics", row "WAI-ARIA Roles, States, and Properties:", 
second cell, third bullet:

> If activation of your menuitem produces a popup menu, then the menuitem should have aria-haspopup set to the ID of the corresponding menu to allow the assistive technology to follow the menu hierarchy and assist the user in determining context during menu navigation.

According to 
<http://www.w3.org/TR/wai-aria/states_and_properties#aria-haspopup>

the value of the aria-haspopup property is true or false. Should one use 
the aria-controls property 
(<http://www.w3.org/TR/wai-aria/states_and_properties#aria-controls>) 
set to the ID of the corresponding menu?

<li role="menuitem" aria-expanded="true" aria-haspopup="true"
     aria-controls="menu01">File
   <ul role="menu" id="menu01">
     <li role="menuitem">Open</li>
     <!-- ... -->
   </ul>
</li>

-- 
Johannes Koch
In te domine speravi; non confundar in aeternum.
                             (Te Deum, 4th cent.)

Received on Wednesday, 17 November 2010 17:28:53 UTC