axe-core
Version:
Accessibility engine for automated Web UI testing
18 lines (16 loc) • 686 B
HTML
<button id="pass1"><img alt="Img alt text">Link text</button>
<a href="#" id="pass2"><img alt="Img alt text">Link text</a>
<a href="#" id="pass3"><img alt="Link text" role="presentation">Link text</a>
<a href="#" id="pass4"><img alt="Link text" aria-hidden="true">Link text</a>
<button id="fail1"><img alt="button text">Button text</button>
<a href="#" id="fail2"><img alt="Link text">Link text</a>
<p id="fail3"><img alt="paragraph text">paragraph text</p>
<table>
<tr>
<th id="fail4"><img alt="header cell text">header cell text</th>
<td id="fail5"><img alt="data cell text">data cell text</td>
</tr>
</table>
<ul>
<li id="fail6"><img alt="list text">list text</li>
</ul>