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.
BSD-3-CLAUSE License
Bot releases are hidden (Show)
Fix for #279
Published by ironikart almost 4 years ago
Support for WCAG 2.1
Thanks to @stefanruijsenaars HTMLCS now supports automated checks against parts of the WCAG 2.1 spec. There are many criteria which cannot be checked automatically and in these cases HTMLCS will show a notice
level message prompting for manual intervention.
Change list:
display: none
(#267)Change list.
Basic string translation has been added and can be invoked in the Auditor via detection of the language in <html lang="{string}">
by default, or being specifically provided a language code in the Auditor options (see README.markdown).
Minor issue fixes
aria-label
and aria-labelledby
support. Both attributes are now valid text label alternatives for:
<object>
resolves #158 and #159<button>
and other form fields resolves #160grunt build
and grunt build-debug
now outputs code which wraps HTML_CodeSniffer objects in UMD format. This resolves #166 and #73../build/HTMLCS.js
. This resolves #167.onclick
) now test if the element is able to be accessed via the keyboard and provides a warning referencing G90.phantomjs Contrib/PhantomJS/HTMLCS_Run.js <url to check> json
.aria-hidden
: