Use ariaLabelledByElements, ariaDescribedByElements and ariaControlsElements
In some cases we are generating a unique element id
in javascript just so it can be used for the aria-labelledby
, aria-describedby
and aria-controls
attributes. After ESR 140, we can switch these to use the newer ariaLabelledByElements
, ariaDescribedByElements
and ariaControlsElements
javascript properties, which do not require a set id
for the element.
From a quick look, this can be used for the:
- noscript toolbar visibility control in
about:addons
(aria-labelledby
), - the built-in bridge dialog radio options (
aria-describedby
), and - the bridge menu options (
aria-controls
).
Edited by henry