WebAIM - Web Accessibility In Mind

E-mail List Archives

for

From: Steve Green
Date: Aug 4, 2025 8:52AM


Here's another test that clearly shows something is wrong somewhere. I replaced the link element with a button, and JAWS now does announce the heading, but it ignores the "aria-label" attribute. You would expect it to behave the same as before, but it doesn't. It announces the following code as "heading level three button bar".

<button aria-label="foo">
<h3>bar</h3>
</button>

NVDA reads this as "button foo", so it is acknowledging the "aria-label" attribute and ignoring the heading, as it did with the link.

As before, Chrome's accessibility tree shows the button's name as "foo". The heading has a role of "h3" and contents of "bar".

Steve