Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Divergence of results for the same WCAG 2.1 AA tag in Axe Core to Axe-Core DevTools with WCAG 2.1 AA #4652

Closed
douglascugliaridev opened this issue Dec 10, 2024 · 1 comment
Labels
question ungroomed Ticket needs a maintainer to prioritize and label

Comments

@douglascugliaridev
Copy link

Product

axe-core

Question

Hello, I would like to know if I can do an analysis using the Axe-core to analyze only for example by the WCAG 2.1A and WCAG 2.1 AA tag. Pegunto, because I’m trying to do an analysis by just passing these two Tags and it’s not bringing any problem. Already in the Axe-Core Devtools Free version that comes with the WCAG 2.1 AA tag selected it brings several defects to the page I’m analyzing.

@douglascugliaridev douglascugliaridev added question ungroomed Ticket needs a maintainer to prioritize and label labels Dec 10, 2024
@WilcoFiers
Copy link
Contributor

@douglascugliaridev Yes this is possible. You can use the runOnly option for this with the wcag21a and wcag21aa tag:

const results = await axe.run({ runOnly: ['wcag21a', 'wcag21aa'] })

You can find the documentation for it here:
https://github.com/dequelabs/axe-core/blob/develop/doc/API.md#options-parameter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question ungroomed Ticket needs a maintainer to prioritize and label
Projects
None yet
Development

No branches or pull requests

2 participants