Skip to content

Remove handling for multiple aria-invalid attributes#18587

Merged
seanbudd merged 3 commits into
masterfrom
fix-aria-test
Jul 31, 2025
Merged

Remove handling for multiple aria-invalid attributes#18587
seanbudd merged 3 commits into
masterfrom
fix-aria-test

Conversation

@seanbudd

@seanbudd seanbudd commented Jul 30, 2025

Copy link
Copy Markdown
Member

Link to issue number:

Fixes #13321

Summary of the issue:

The aria-invalid spec never supported multiple attributes, however browsers temporarily supported them.
This support no longer exists in Chrome or Firefox.

As such tests and handling for multiple aria-invalid attributes should be removed

Description of user facing changes:

None (as browser support was dropped a long time ago)

Description of developer facing changes:

None

Description of development approach:

Remove test case, simplify handling

Testing strategy:

Tested fetching aria-invalid via the virtual buffers for aria-invalid="grammar spelling" and aria-invalid="grammar,spelling" to confirm no support in firefox or chrome.

<p>Fat <span aria-invalid="grammar spelling">a ffrog</span> crokes</p>
<p>Fat <span aria-invalid="grammar, spelling">a ffrog</span> crokes</p>

Known issues with pull request:

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.

@coderabbitai summary

Copilot AI review requested due to automatic review settings July 30, 2025 02:04
@seanbudd seanbudd requested a review from a team as a code owner July 30, 2025 02:04
@seanbudd seanbudd requested a review from SaschaCowley July 30, 2025 02:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes legacy handling for multiple aria-invalid attributes, as browser support for this non-standard behavior has been discontinued in Chrome and Firefox. The aria-invalid specification never officially supported multiple values, and browsers have dropped their temporary support.

  • Removes test case for comma-separated aria-invalid values
  • Simplifies aria-invalid processing logic to handle single values only
  • Removes excluded_from_build tag from the remaining test

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
tests/system/robot/chromeTests.robot Removes excluded_from_build tag from aria-invalid test
tests/system/robot/chromeTests.py Removes test case and comments for comma-separated aria-invalid values
source/NVDAObjects/IAccessible/init.py Simplifies aria-invalid processing to use match statement for single values

Comment thread source/NVDAObjects/IAccessible/__init__.py
Comment thread source/NVDAObjects/IAccessible/__init__.py
Comment thread tests/system/robot/chromeTests.py Outdated
Comment thread tests/system/robot/chromeTests.robot Outdated
Co-authored-by: Sascha Cowley <16543535+SaschaCowley@users.noreply.github.com>
@seanbudd seanbudd enabled auto-merge (squash) July 31, 2025 00:22
@seanbudd seanbudd merged commit 4743a3a into master Jul 31, 2025
21 checks passed
@seanbudd seanbudd deleted the fix-aria-test branch July 31, 2025 00:49
@SaschaCowley SaschaCowley added this to the 2025.3 milestone Aug 18, 2025
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.

Fix/enable system test: ARIA_invalid_spelling_and_grammar

3 participants