dequelabs / axe-core

Accessibility engine for automated Web UI testing
https://www.deque.com/axe/
Mozilla Public License 2.0
5.86k stars 757 forks source link

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

Open WilcoFiers opened 1 year ago

WilcoFiers commented 1 year ago

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>
straker commented 1 year ago

This should pass for the 2 cases: