dequelabs / dequelabs/axe-core

Focusable img elements should fail if they have an empty alt

Open
#2,583 0 comments 0 reactions 0 assignees View on GitHub
feat rules
Dominant language
JavaScript
Stars
7.5k
Forks
933
Avg merge
2d 23h
Merged PRs (30d)
17

Description

I think it would be good if axe-core distinguished between focusable images and non-focusable ones. For example, I think the following should fail:

```html

```

To do this, we'd need to split up the image-alt rule. Maybe exclude focusable images from it and have those tested in a separate img-alt-focusable rule?

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.