Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does compliance to WCAG 2.0 AA prevent the use of JavaScript?

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?

like image 642
Roy Tang Avatar asked Dec 05 '11 09:12

Roy Tang


People also ask

What does WCAG 2.0 AA mean?

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.

What is WCAG What are the differences between a AA and AAA compliance?

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.

What are WCAG 2.0 guidelines?

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.

What does WCAG 2.1 Level AA mean?

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.


2 Answers

The short answer is, no, it doesn't. Your understanding is pretty much correct.

like image 84
graphicdivine Avatar answered Oct 23 '22 15:10

graphicdivine


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:

  • Get acquainted with WCAG 2.0 criteria and make sure you are not failing any of them. It is not a matter of using one or another technology, but a matter of using them correctly.
  • In particular, check you abide by the client-side scripting techniques for WCAG 2.0 which deal with recommended and disapproved scripting usages.
  • Use ARIA Techniques for WCAG 2.0 to define the semantics of non-standard controls, they are widely supported by major browsers.
like image 5
ysmartin Avatar answered Oct 23 '22 15:10

ysmartin