dequelabs / dequelabs/axe-core

Update accName calculation (fallback to title when alt="")

Open
#4,971 1 comment 0 reactions 0 assignees View on GitHub
fix standards
Dominant language
JavaScript
Stars
7.5k
Forks
933
Avg merge
2d 23h
Merged PRs (30d)
17

Description

The following should pass:

```html

```

I came across an image like this (although without the button) today. Testing this in Chrome, Safari and Firefox this seems to work. I recall the spec about how empty props are handled changing a while ago. It is possible that a similar thing now works for `aria-label=""` as well, as part of this we should test that too. I haven't confirmed this in actual AT so we'll want to do some screen reader testing to make sure as well. Just because devtools says something has a label doesn't mean screen readers will accept that.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.