AX_ARIA_07
This code example is taken from the Accessibility Developer Tool Documentation
Example Begin
- Rainbow Trout
- Brook Trout
- Lake Trout
Example End
Code for this Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Bad: list1 is owned by two comboboxes --> | |
<input id="combo1" type="text" role="combobox" aria-labelledby="foo" aria-owns="list1"/> | |
<input id="combo2" type="text" role="combobox" aria-labelledby="foo" aria-owns="list1"/> | |
<ul id="list1" aria-expanded="true" role="listbox"> | |
<li role="option" tabindex="-1">Rainbow Trout</li> | |
<li role="option" tabindex="-1">Brook Trout</li> | |
<li role="option" tabindex="-1">Lake Trout</li> | |
</ul> |