Does compliance to WCAG 2.0 AA prevent the use of JavaScript?
My understanding based on Understanding Conformance is that we can still use JavaScript as long as we don't generate any content that is noncompliant and that we explicitly state we support JavaScript. Is that correct?
WCAG 2.0 Level AA: Acceptable compliance This conformance level is used in most accessibility rules and regulations around the world, including the ADA. To meet WCAG 2.0 Level AA conformance, the website is usable and understandable for the majority of people with or without disabilities.
WCAG 2.0 guidelines are categorized into three levels of conformance in order to meet the needs of different groups and different situations: A (lowest), AA (mid range), and AAA (highest). Conformance at higher levels indicates conformance at lower levels.
WCAG 2.0 refers to Web Content Accessibility Guidelines, which are published by the World Wide Web Consortium's (W3C) Web Accessibility Initiative (WAI). The Web Content Accessibility Guidelines (WCAG) 2.0 provide recommendations for making Web content more accessible.
WCAG Level AA conformance demonstrates reasonable accessibility. If a website fails to conform with WCAG 2.1 Level A success criteria, it has serious accessibility barriers. Level A success criteria requires text alternatives for non-text content, keyboard navigability, and other basic considerations.
The short answer is, no, it doesn't. Your understanding is pretty much correct.
Indeed, you can use JavaScript as long as we you abide by WCAG 2.0 success criteria :-)
There is a rationale why you may have heard JavaScript is banished from accessible content. In the old days of WCAG 1.0, it practically censured the use of any content generated by JavaScript. You needed to check that your web application still worked with JavaScript disabled, which practically restricted JavaScript to decorative purposes. Otherwise, you ought to provide an alternate, non-JavaScript reliant, version, which usually involved a lot of server-side magic (try and see Google Maps without JS to understand what I mean). This was because in those old days assistive technologies and even some mainstream browsers (e.g. mobile) did not support JavaScript, or browsers did not expose script-generated contents.
This is not the case anymore. You can use JavaScript in accessible, WCAG 2.0, websites, but:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With