WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: ARIA and Label tags both for Error Messages

for

From: Jukka K. Korpela
Date: Feb 17, 2014 5:34AM


2014-02-17 14:23, Alastair Campbell wrote:

> Susan Grossman wrote:
> "We have gotten some push back from a federal agency saying that no ARIA is
> supported well enough to rely on and that we must you both aria and label
> tags to associate the error messages."

I'm still wondering what the question is about. Is it about error
messages issued client-side with JavaScript, on the basis of checks
prior to submitting a form (and possibly not related to form submission
at all), or is it about error messages in the page sent by a server in
response to form submission? Or maybe about HTML5 constraint validation?

I suppose it is about client-side checks, but even there, we have
several rather different cases. The data can be checked as it is being
entered (e.g. with onkeypress), or as one item has been entered (e.g.
with onchange), or when the form is about to be submitted (e.g. with
obsubmit). There are then many different ways to communicate the
error(s) to the user.

I think we need an idea of what is going on as a whole, possibly with a
demo page, before we can discuss the best approach.

Yucca