nvda
51aacac6 - Add support for aria-brailleroledescription from ARIA 1.3. (#14748)

Commit
2 years ago
Add support for aria-brailleroledescription from ARIA 1.3. (#14748) partial fix for #11829 Summary of the issue: ARIA 1.3 adds a aria-brailleroledescription attribute, which allows the web author to specify a string representation for an element's role, specific to Braille. For example: <button aria-roledescription="planet" aria-brailleroledescription="plnt">Saturn</button> A button whos spoken role description will be "planet" but in Braille it will be shown as the abreviated "plnt". Description of user facing changes NVDA will honor the aria-brailleroledescription attribute if set by the web author, when presenting web content on a braille display. Description of development approach The internal work to support custom braille role text had already been added to NVDAObjects and controlFields to allow for Braille abbreviations for landmarks. this PR: Implements roleTextBraille on the IA2Web NVDAObject, exposing the content of the brailleroledescription IAccessible2 attribute if available In the Gecko ia2 virtualBuffer, normalizes the brailleroledescription IAccessible2 attribute to the roleTextBraille NvDA attribute on controlFields.
Parents
Loading