Skip to content

fixrule(a_target_warning): check accessible name for the new window hint - #2658

Merged
tombrunet merged 3 commits into
IBMa:main-4.xfrom
rmz-oz:fix-target-warning-accessible-name
Oct 16, 2026
Merged

tombrunet merged 3 commits into
IBMa:main-4.xfrom
rmz-oz:fix-target-warning-accessible-name

Conversation

@rmz-oz

@rmz-oz rmz-oz commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • New or modified checker rule(s)
  • New or modified help files
  • Simulator updates
  • Extension UI changes
  • Automated tool changes
  • Other (Provide information)

The rule now also looks at the link's accessible name and the alt or title of its content, case insensitive. The area elements in TargetText-valid.html have "in new window" in their alt, so they pass now and I took them out of failedXpaths.

This PR is related to the following issue(s):

Testing reference:

  • New accessible-name.html covers img alt, svg title, svg aria-label and aria-label on the link, plus a link with no hint that still warns.
  • karmaaction: 1951 passed (2 fail without the rule change). accessibility-checker Fast scans and test-act-w3 also run locally against a local rule server, all green.

I have conducted the following for this PR:

  • I validated this fix in my local env and provided testing information above
  • I understand that the title of this PR will be used for the next release notes.
  • I added I agree to the DCO at https://developercertificate.org/ for this contribution. as a comment after creating the pull request.

Assets to aide review attached

  • Links to design artifacts
  • Links to video walkthrough of user experience
  • Other

Definition of Done

  • Peer review complete
  • Secondary review complete
  • Staging deployment verified

The new window hint was missed when it was in aria-label, a child img
alt or an svg title. Also match case insensitively. The area elements
in TargetText-valid.html pass now since their alt says "in new window".

Fixes IBMa#1951

Signed-off-by: rmz-oz <262968088+rmz-oz@users.noreply.github.com>
@rmz-oz

rmz-oz commented Sep 30, 2026

Copy link
Copy Markdown
Contributor Author

I agree to the DCO at https://developercertificate.org/ for this contribution.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
num: "2.4.4",

We had some discussion and I think this more correctly maps to 2.4.4, which would better fit with your changes since it allows for programmatic name. 3.2.2 is more about inputs rather than links. G201 aligns with this recommendation. We should fix the references in the related help file also.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Switched it to 2.4.4 and changed the help page link to IBM 2.4.4 Link Purpose (in Context).

Signed-off-by: rmz-oz <262968088+rmz-oz@users.noreply.github.com>
@tombrunet
tombrunet merged commit 5950433 into IBMa:main-4.x Oct 16, 2026
16 of 17 checks passed
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.

[BUG]: a_target_warning should pick up text alternatives to indicate the new window

2 participants