dequelabs / dequelabs/axe-core
Input-button-name rule does not run on non-lowercase types
Open
false negative
fix
- Dominant language
- JavaScript
- Stars
- 7.5k
- Forks
- 933
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 29
Description
The following code returns `inapplicable` when running `input-button-name`. This is because the [rules selector](https://github.com/dequelabs/axe-core/blob/develop/lib/rules/input-button-name.json#L4) is case sensitive so does not match when running against non-lowercase types.
```html
```
Contributor guide
Research direction
Start with the case-sensitive selector in lib/rules/input-button-name.json and reproduce the issue using the provided mixed-case input types. Done means input-button-name no longer returns inapplicable for SUBMIT, ImAGE, ResET, or buTTON inputs; then run the relevant rule tests if available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- accessibility
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 50/100