Use value of aria-label*
to provide accessible name for tables in Firefox
#16588
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Link to issue number:
Fixes #5183
Summary of the issue:
In Firefox, tables labelled with
aria-label
oraria-labelledby
(where the referenced element is not visible) do not have a virtual buffer node inserted with the accessible name of the table.Description of user facing changes
Tables now have this node inserted in Firefox, as they already do in Chrome.
Description of development approach
Since Firefox returns the empty string if no description is given (rather than
null
as returned by Chrome), updategecko_ia2.cpp
to check for the empty string as well asnull
.Testing strategy:
Manually tested with the following snippet in Chrome and Firefox:
Known issues with pull request:
None.
Code Review Checklist: