WebAIM - Web Accessibility In Mind

E-mail List Archives

RE: Section 508 Standards Compliance and Scripts

for

From: Paul Bohman
Date: Sep 4, 2003 10:00AM


Bryce Fields wrote:
"[if a product claims that it] 'uses only minimal dynamic scripting for
content presentation...[and that the content] is written to the screen
before the page loads, and can't be distinguished from standard content.'
... How can this be considered compliance w/ 508???"

My response:

Here is what Section 508 actually states, with regard to client-side
scripting:

"When pages utilize scripting languages to display content, or to create
interface elements, the information provided by the script shall be
identified with functional text that can be read by assistive technology."

According to Section 508, then, client-side scripting is not automatically
"bad." As long as the scripts can be "read by assistive technology," it is
fully in compliance with Section 508.

Of course, this requirement is sufficiently vague to allow for all kinds of
confusion (for example, do *all* kinds and *all* brands of assistive
technologies have to be able to access the scripts?) But since we can't
change the way it's worded, we have to look at how to implement it as best
we can.

The developers of the product you're concerned about actually understand
Section 508 and JavaScript quite well, from what you've quoted of their
compliance claims. Here's the logic behind what they're saying:

- The first premise is that the most prevalent "assistive technology" that
is potentially affected by inaccessible JavaScript is the screen reader, so
they're concerned about making content accessible to screen readers. NOTE:
There are also screen enlargers, keyboard emulators, and many other kinds of
assistive technologies, but screen readers are the biggest concern here. You
could argue that keyboard accessibility is also a big concern with
JavaScript, which is true, but the keyboard is not generally considered an
assistive technology. So if we take the most literal and most practical
interpretation of Section 508, we're most concerned about making JavaScript
accessible to screen readers.

- The second premise is that the major brands of screen reader (i.e. JAWS
and Window Eyes) support some types of JavaScript. In the case of content
being written to the page "before" the page loads, both screen readers
support this functionality. NOTE: They vendor's choice of wording leaves
some room for debate. It's probably more accurate to say that the JavaScript
writes content to the page *AS* the page is being written, but the end
result is essentially the same: By the time the page is finished loading,
the JavaScript is finished. The script has written its content to the page
and no additional JavaScript is necessary. The screen readers will read this
text as if it were written with plain old HTML (without JavaScript).

- The conclusion is that they can use certain types of JavaScript without
violating Section 508:

IF
JavaScript must be accessible to screen readers (IN ORDER TO comply with
Section 508)
AND IF
certain types of JavaScript are accessible to screen readers
THEN
We can use those certain types of JavaScript and still comply with Section
508.

So, from both a legal and technical perspective, I'd say that they are on
firm ground. But what if someone has JavaScript turned off? Or what if
someone is using an assistive technology that doesn't support that kind of
JavaScript? If either of these conditions exist, then the content will be
inaccessible. No question about it. However, if someone has turned off
JavaScript, then the user has chosen to turn it off. It is a matter of
personal preference. The user chose to make all JavaScript content
inaccessible. In the case of assistive technologies that do not support
JavaScript, the vendor could argue that this too was the user's choice,
since more robust assistive technologies are available. Of course,
considering the price of full-featured screen readers, it may be that the
user can't afford the more robust product, but this is something beyond the
vendor's control. From their perspective, they've done what Section 508
requires, even though a small minority of users will still find the content
inaccessible.

This whole scenario is an example of how Section 508 is not the full picture
of what is required to make content truly accessible to all audiences. There
are limitations in the law.

At the same time, I would argue that the concept of making content "truly
accessible to all audiences" is an unachievable goal on the conceptual
level. No matter how hard you try, you can always come up with rare
exceptions that ruin your hopes of perfect accessibility. We should try our
best to approach that goal. Definitely. But there are still real limits as
to what is actually possible.

Paul Bohman
Technology Coordinator
WebAIM (Web Accessibility in Mind)
www.webaim.org
Center for Persons with Disabilities
www.cpd.usu.edu
Utah State University
www.usu.edu



----
To subscribe, unsubscribe, suspend, or view list archives,
visit http://www.webaim.org/discussion/