axe-core icon indicating copy to clipboard operation
axe-core copied to clipboard

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

Open WilcoFiers opened this issue 2 years ago • 1 comments

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 avatar Aug 11 '23 14:08 WilcoFiers

This should pass for the 2 cases:

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

straker avatar Aug 23 '23 15:08 straker