dequelabs / dequelabs/axe-core

Incomplete ruleset when running axe-core to check WCAG 2.1 withTags(['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21a']).

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

Description

### Product

axe-core

### Product Version

4.10.1

### Latest Version

- [x] I have tested the issue with the latest version of the product

### Issue Description

Hi

I just noticed that when I run axe-core withTags(['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21a']) to check all rules applied to WCAG 2.1, some rules are missing in this check (i.e duplicate-id rule, which is important rule in 4.1.1 Parsing (Level A)).
Missing rules are those listed at "Deprecated Rules" section in https://github.com/dequelabs/axe-core/blob/develop/doc/rule-descriptions.md
Those rules will be deprecated in WCAG 2.2, but are still legit in WCAG 2.1, so they should be included in WCAG 2.1 check.

I tried to get around it any other way, but I cannot run axe-core withTags(['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21a']) and .withRules(['duplicate-id']) in the same iteration, so I need to run it twice to include those missing rules i.e.:
1. First run with withTags(['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21a'])
2. Second run .withRules(['duplicate-id'], ... [other missing rules])

#### Expectation
When runnig axe-core with withTags(['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21a']) to check all rules applied to WCAG 2.1, axe-core should also check rules i.e. duplicate-id and other listed as
"Deprecated Rules" in https://github.com/dequelabs/axe-core/blob/develop/doc/rule-descriptions.md

#### Actual
When runnig axe-core with withTags(['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21a']) to check all rules applied to WCAG 2.1, axe-core ommits rules like duplicate-id and other listed as
"Deprecated Rules" in https://github.com/dequelabs/axe-core/blob/develop/doc/rule-descriptions.md

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.