Skip to content

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:

  1. noscript toolbar visibility control in about:addons (aria-labelledby),
  2. the built-in bridge dialog radio options (aria-describedby), and
  3. the bridge menu options (aria-controls).
Edited by henry
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information