HTML_CodeSniffer icon indicating copy to clipboard operation
HTML_CodeSniffer copied to clipboard

Support WCAG 2.2

Open werdnanoslen opened this issue 2 years ago • 5 comments

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

werdnanoslen avatar Oct 11 '23 16:10 werdnanoslen

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.

ironikart avatar Oct 11 '23 23:10 ironikart

fwiw axe has one rule to check target size

werdnanoslen avatar Oct 13 '23 04:10 werdnanoslen

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.

j-mendez avatar Feb 17 '24 13:02 j-mendez