Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use value of aria-label* to provide accessible name for tables in Firefox #16588

Merged
merged 3 commits into from
May 23, 2024

Conversation

SaschaCowley
Copy link
Member

Link to issue number:

Fixes #5183

Summary of the issue:

In Firefox, tables labelled with aria-label or aria-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), update gecko_ia2.cpp to check for the empty string as well as null.

Testing strategy:

Manually tested with the following snippet in Chrome and Firefox:

data:text/html,<p>Table for testing follows:</p><table aria-label="Foo"><tr><th>Test 1</th><th>Test 2</th></tr></table>

Known issues with pull request:

None.

Code Review Checklist:

  • Documentation:
    • Change log entry
    • User Documentation
    • Developer / Technical Documentation
    • Context sensitive help for GUI changes
  • Testing:
    • Unit tests
    • System (end to end) tests
    • Manual testing
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers
    • Localization in other languages / culture than English
  • API is compatible with existing add-ons.
  • Security precautions taken.

…Chrome and FF return different values when no description is provided
@SaschaCowley SaschaCowley marked this pull request as ready for review May 22, 2024 08:03
@SaschaCowley SaschaCowley requested a review from a team as a code owner May 22, 2024 08:03
@AppVeyorBot
Copy link

  • Build execution time has reached the maximum allowed time for your plan (60 minutes).

See test results for failed build of commit c8099b97fc

@seanbudd seanbudd merged commit 9838cf9 into nvaccess:master May 23, 2024
1 check was pending
@SaschaCowley SaschaCowley deleted the table-aria-label branch August 22, 2024 05:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aria-labelledby does not work to provide accessible name for tables (in Firefox), aria-describedby does
3 participants