WebAIM - Web Accessibility In Mind

E-mail List Archives

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


From: Jared Smith
Date: Sep 25, 2020 2:27PM

3.3.1 requires that error information, if detected, be identified and described in text. 3.3.3 does the same for error suggestions. These, however, do not specifically require that this information be associated to the relevant inputs.

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

This would not apply for error information that is not presentationally associated to the inputs. For example, if the error message appears at the top of a form, it's not visually associated to the input, so there is no requirement in WCAG to programmatically associate it.

Jared Smith