Is using JavaScript to submit a form WCAG 2.0 compliant?

11 Feb 2009 - 2:33am
5 years ago
2 replies
2409 reads
Marcus Coghlan
2007

Hi all,

I'm about to go into a series of form redesigns within a section of
my company's corporate site. We've mandated that any new forms or
form redesigns should comply with WCAG 2.0 AA recommendations.

Most of the 2.0 criterion and techniques seem reasonably clear and
I'm not finding it too difficult to find examples of their
application, but I can't seem to locate a clear rule around the use
of JavaScript to submit a form. Requirement 4 states that "4.
Accessibility-Supported Technologies Only: Only accessibility
supported technologies are relied upon to satisfy the success
criteria. Any information or functionality that is implemented in
technologies that are not accessibility supported are also be
available via technologies that are accessibility supported." I've
read that because most assistive technologies, as well as browsers,
now support JavaScript, its appropriate use shouldn't be a barrier
to satisfying the requirement. Indeed, the 2.0 guidlines include a
number of techniques to achieve compliance based on client side
script - see
http://www.w3.org/TR/2008/WD-WCAG20-TECHS-20080430/client-side-script.html
.

And criterion 2.1.1 makes it pretty clear that a form submit would
need to be accessible from the keyboard, not just a pointing device -
see http://www.w3.org/TR/2008/WD-WCAG20-TECHS-20080430/F54.html

But I can't find a clear call on whether a form that uses JavaScript
to perform the submit would be acceptable for AA compliance.

Can anyone help me on this one?

Thanks, Marcus

Comments

11 Feb 2009 - 4:04pm
Marcus Coghlan
2007

Thanks Mike. That was how I was reading it, too.
"By all means, use js to enhance accessibility. Here are some
techniques to help you on your way and a couple of points to watch
out for. Just make sure things don't break without it."
I'll head over to accessifyforum.com and have a look around.
Cheers.Marcus

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Posted from the new ixda.org
http://www.ixda.org/discuss?post=38466

11 Feb 2009 - 5:12pm
Carolynn
2008

Hi Marcus

I did some training a few years ago with the RNIB. One of the ladies
there (she was a screen reader user) said that most screen reader
users turn off Javascript for browsing because there is so much bad
stuff out there they frequently end up in an unpleasant and
unescapable loop. If they knew the site was okay, then they would
have it turned on... that was the jist of it anyway. This was about 3
years ago so would be good to know if this is still valid, or indeed
if I have accurately remembed what she said!! You can contact her on
the RNIB blog - her name is Bim Egan

Maybe these page can get you started?

http://www.rnib.org.uk/wacblog/category/javascript/
http://www.rnib.org.uk/xpedio/groups/public/documents/publicwebsite/public_formvalidation.hcsp

:-)
C

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Posted from the new ixda.org
http://www.ixda.org/discuss?post=38466

Syndicate content Get the feed