dequelabs / dequelabs/axe-core
Combine non-empty-if-present and non-empty-value checks
Open
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
Assessment
This issue has not been assessed yet.