squizlabs / HTML_CodeSniffer

HTML_CodeSniffer is a client-side JavaScript application that checks a HTML document or source code, and detects violations of a defined coding standard. Comes with standards that cover the three conformance levels of the W3C's Web Content Accessibility Guidelines (WCAG) 2.0 and the U.S. Section 508 legislation.
https://squizlabs.github.io/HTML_CodeSniffer/
BSD 3-Clause "New" or "Revised" License
1.12k stars 245 forks source link

Support WCAG 2.2 #315

Open werdnanoslen opened 11 months ago

werdnanoslen commented 11 months ago

WCAG 2.2 has been officially released, and tools like pa11y rely on this to automatically check for compliance.

ironikart commented 11 months ago

After a very brief initial look at the new success criteria I couldn't say any of them would be a good candidate for automated testing with this library (at least not to confidently say that you could 'pass' the criteria with an automated test). If someone reads this issue and decides to open a pull request note that HTMLCS has a 'notice' warning for these kinds of criteria that require manual testing.

werdnanoslen commented 11 months ago

fwiw axe has one rule to check target size

j-mendez commented 6 months ago

Hi @werdnanoslen, A11yWatch has an engine like pa11y for the cloud kayle that uses a runner called fast_htmlcs. We rewrote the htmlcs and axecore from the ground up and it is over 100x - 1000x increased in performance with the continuation of 2.2 rules.

You can use the kayle lib to run or install the runner like you would this lib with npm i fast_htmlcs.