WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: "Error feedback MUST be programmatically-associated with the appropriate element"


From: Patrick H. Lauke
Date: Sep 25, 2020 5:37PM

On 25/09/2020 21:27, Jared Smith wrote:
> This would instead generally fall under 1.3.1. If a visual association between the error information and the relevant input is present, this should also be programmatically defined - probably via aria-describedby (and aria-invalid is a good idea too).

A quick drive-by +1 from me on this - in the common cases where the
error appears right next to/underneath/above the form field, I'd
generally fail it if it's not associated (either via aria-describedby,
or somehow part of the <label> for the field, or replicated verbatim in
aria-label or similar).

Patrick H. Lauke

https://www.splintered.co.uk/ | https://github.com/patrickhlauke
https://flickr.com/photos/redux/ | https://www.deviantart.com/redux
twitter: @patrick_h_lauke | skype: patrick_h_lauke