Closed mathiasbynens closed 12 years ago
@stevefaulkner suggested the following:
I have detailed an example implementation: HTML to Platform Accessibility APIs Implementation Guide. Corresponding ARIA attributes: to the
summary
element add arole="button"
making sure the keyboard behaviour associated with buttons is added i.e. focusable, enter or space activates the button) andaria-expanded="true/false"
the states corresponding to the absence/presence ofopen
attribute ondetails
(note:aria-expanded
is on thesummary
not thedetails
), that’s it.
http://mathiasbynens.be/notes/html5-details-jquery#comment-7