Skip to content

Listbox should not require a name when its used in a combobox pattern #3860

@WilcoFiers

Description

@WilcoFiers

This example should not fail. It comes straight out of WAI-ARIA 1.2:

https://www.w3.org/TR/wai-aria-1.2/#combobox

<label for="tag_combo">Tag</label>
<input type="text" id="tag_combo"
      role="combobox" aria-autocomplete="list"
      aria-haspopup="listbox" aria-expanded="true"
      aria-controls="popup_listbox" aria-activedescendant="selected_option">
<ul role="listbox" id="popup_listbox">
   <li role="option">Zebra</li>
   <li role="option" id="selected_option">Zoom</li>
</ul>

I think the fix would be to skip listbox if its part of a combobox pattern in the no-naming-method-matches method.

There's an issue open on WAI-ARIA for it: w3c/aria#1769 (comment)

Metadata

Metadata

Assignees

Labels

fixBug fixesprA pr has been created for the issuewai-aria

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions