Accessibility · Senior · Question 13 of 75
What is the correct ARIA 1.2 structure for an editable combobox?
- 1
role="combobox"on the input, witharia-expandedandaria-controls - 2
role="listbox"on the input, witharia-liveon all of its options - 3
role="menu"on a wrapper, witharia-haspopupon each of the options
Show the answer
Correct answer: role="combobox" on the input, with aria-expanded and aria-controls
Explanation
The input holds focus, and aria-activedescendant marks the active option. Older patterns put the role on a wrapper, which is why old libraries differ.