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

add axe.getRule(id) #2642

Closed
straker opened this issue Nov 16, 2020 · 4 comments
Closed

add axe.getRule(id) #2642

straker opened this issue Nov 16, 2020 · 4 comments
Assignees
Labels
feat New feature or enhancement good first issue For first-time contributors

Comments

@straker
Copy link
Contributor

straker commented Nov 16, 2020

Need a public way to return an individual rule so we don't have to keep doing axe._audit.rules.find(ruleObj => ruleObj.id === ruleId)

@straker straker added the feat New feature or enhancement label Nov 16, 2020
@WilcoFiers
Copy link
Contributor

@straker straker self-assigned this Dec 24, 2020
@dylanb dylanb added the good first issue For first-time contributors label Mar 12, 2021
@padmavemulapati
Copy link

devTask

@padmavemulapati
Copy link

Validated with the latest axe-core code base -
after run build, and latest axe.js built, run await axe.utils.getRule('region') , below is the details we can see:
image

also verified for few more rules:, bypass
image

for color-contrast
image

@padmavemulapati
Copy link

Tested on axe-expert_v4.6.0.03923, we can see the _audit details by running - utils.getRule('rule_id')
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or enhancement good first issue For first-time contributors
Projects
None yet
Development

No branches or pull requests

5 participants