dequelabs / dequelabs/axe-core

Combine non-empty-if-present and non-empty-value checks

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

Description

These two checks both check the contents of the `value` attribute (the former only for submit and reset inputs). When it fails it produces a double message about the attribute. We should combine the checks into a single check to get a single remediation message (this means we deprecate the `non-empty-if-present` check and change the `non-empty-value` check to use a new evaluate function that does all the checking).

```html

```

```console
"Fix any of the following:
Element has a value attribute and the value attribute is empty
Element has an empty value attribute
..."
```

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.