WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: ARIA and Label tags both for Error Messages


From: Jukka K. Korpela
Date: Feb 11, 2014 3:05PM

2014-02-11 23:48, Susan Grossman wrote:

> We have been associating error messages to form fields using
> aria-describedby, and the screen reader users who tested it thought it
> worked well for them.

What kind of error messages are we talking about, and how do they work?
Is it a message from a client-side check, or from a server-side check?

The aria-describedby attribute is supposed to provide information about
a field, not about an error condition.

> 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.

The label element is supposed to associate a label with a control. It
would seem to be entirely inappropriate to use it to associate an error
message with anything.