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

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/01070199ae16dfa2-ade167dc-d089-4c80-b884-061f2757e5fb-000000%40eu-central-1.amazonses.com.

Reply via email to