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

False positives for CJK named anchors #319

Open
ptmkenny opened this issue Apr 8, 2024 · 0 comments
Open

False positives for CJK named anchors #319

ptmkenny opened this issue Apr 8, 2024 · 0 comments

Comments

@ptmkenny
Copy link

ptmkenny commented Apr 8, 2024

When running pa11y with htmlcs as the runner, I'm getting this false positive:

Error: This link points to a named anchor "%E3%81%BE%E3%81%A8%E3%82%81" within the document, but no anchor exists with that name.
[htmlcs: WCAG2AA.Principle2.Guideline2_4.2_4_1.G1,G123,G124.NoSuchID](https://squizlabs.github.io/HTML_CodeSniffer/Standards/WCAG2/#sc2_4_1)

Here's the code, produced by Markdown:

<p>Here is a link: <a href="#%E3%81%BE%E3%81%A8%E3%82%81">Go to summary</a></p>
<h2 name="まとめ">まとめ</h2>
<p>Summary</p>

This is a valid link; %E3%81%BE%E3%81%A8%E3%82%81 converts to まとめ, but CodeSniffer can't parse it, so the test fails even though it should pass.

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