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

link-in-text-block should consider parent nodes & descending images #4126

Open
WilcoFiers opened this issue Aug 11, 2023 · 1 comment
Open
Assignees
Labels
fix Bug fixes rules Issue or false result from an axe-core rule support
Milestone

Comments

@WilcoFiers
Copy link
Contributor

The following should pass the link-in-text-block rule:

<p>
  Lorem ipsum 
  <u><a href="#">dolor</a></u> 
  sit amet consectetur adipisicing elit. Ea officiis
  <a href="#"><img width="16" height="16"> exercitationem</a> 
  ullam inventore facere quaerat, itaque eaque. Eaque 
  <a href="#"><svg width="16" height="16"></svg>consectetur</a>,
  doloremque nostrum, vel animi quis pariatur, qui omnis inventore cum harum!
</p>
@WilcoFiers WilcoFiers added fix Bug fixes rules Issue or false result from an axe-core rule support labels Aug 11, 2023
@WilcoFiers WilcoFiers added this to the Axe-core 4.9 milestone Aug 11, 2023
@straker
Copy link
Contributor

straker commented Aug 23, 2023

This should pass for the 2 cases:

  • link being wrapped by a u element
  • link with graphical content (img, svg, canvas, object, etc.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fixes rules Issue or false result from an axe-core rule support
Projects
None yet
Development

No branches or pull requests

2 participants