Accessibility · Middle · Question 22 of 75
When is aria-activedescendant used instead of roving tabindex?
- 1When DOM focus must stay on one element, like a combobox input
- 2When keyboard support is not needed for the component
- 3When the widget's items are all rendered inside an
iframe
Show the answer
Correct answer: When DOM focus must stay on one element, like a combobox input
Explanation
The input keeps focus so the user can type, and the attribute points to the highlighted option. You also have to scroll and style that option yourself.