#36640: Error messages should use aria-errormessage
-------------------------------------+-------------------------------------
Reporter: Tobias Bengfort | Type:
| Cleanup/optimization
Status: new | Component: Forms
Version: 5.2 | Severity: Normal
Keywords: accessibility, ui, | Triage Stage:
forms | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
#32819 added `aria-describedby` to associate help texts and errors with
their inputs. I recently learned that there is also the more specialized
[aria-errormessage](
https://www.w3.org/TR/wai-aria-1.2/#aria-
errormessage).
I am not sure if using `aria-describedby` over `aria-errormessage` was a
conscious decision.
One issue might be that `aria-errormessage` seems to be intended for
client side validation. It must be used with `aria-invalid="true"`. See
also
https://github.com/w3c/aria/issues/2048 for a discussion of the
differences between `aria-describedby` and `aria-errormessage`.
--
Ticket URL: <
https://code.djangoproject.com/ticket/36640>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.