aName
aName reports an approximation of the accessible name of the focused element. It returns the text label, where that's defined, the focused element type, any attached descriptions, and the current state if applicable. For elements within the shadow DOM, aName inspects both the focused element and its host to determine attribute states. It also attempts to resolve names from slot references and distributed text content.
Notes:
- Because accessible name computation can vary across browsers and component implementations, results may not always be consistent or cover every possible shadow DOM permutation.
- To get the state calculation, [TAB] away and then back to the element