When the focus is on a composite widget, combobox, textbox, group, or application, the aria-activedescendant attribute identifies the currently active element.
When interactive elements have multiple focusable descendants, such as menus, grids, and toolbars, the aria-activedescendant property is used to manage focus for assistive technologies. aria-activedescendant can be used on container elements to refer to the currently active element, informing assistive technology users of the currently active element when focused, instead of the screen reader moving focus between owned elements.
The browser maintains the DOM focus on the container element or an input element that controls the container element when using aria-activedescendant. The user agent, on the other hand, communicates desktop focus events and indicates to assistive technology that the element referenced by aria-activedescendant has focus.
When you set the value of aria-activedescendant on an element with DOM focus, make sure it refers to an owned element—either a descendant of the element with DOM focus OR a logical descendant, as indicated by the aria-owns attribute.
Allowed value for aria-activedescendant
ID reference – id of the currently focused element in the same document.
Examples for aria-activedescendant
Example 1: Combobox
- American Samoa
Allowed roles for aria-activedescendant property