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

Main links fail WCAG2 tests in pa11y #60

Open
damienmckenna opened this issue Oct 2, 2019 · 1 comment
Open

Main links fail WCAG2 tests in pa11y #60

damienmckenna opened this issue Oct 2, 2019 · 1 comment

Comments

@damienmckenna
Copy link

I've found that the HTML structure required by this JS library results in WCAG2 test failures in pa11y

WCAG2AA.Principle2.Guideline2_4.2_4_1.G1,G123,G124.NoSuchId
This link points to a named anchor "[link target]" within the document, but no anchor exists with that name.

https://github.com/pa11y/pa11y/wiki/HTML-CodeSniffer-Rules

Unfortunately adding role="button" to the HTML doesn't appease the test because it's so strict.

@damienmckenna
Copy link
Author

FYI this can be worked around using the following:

pa11y --standard=WCAG2AA --timeout=120000 --ignore=WCAG2AA.Principle2.Guideline2_4.2_4_1.G1,G123,G124.NoSuchID https://example.om/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant