Use case
Any element that displays a brief, important, time-sensitive message in a way that attracts the user's attention without interrupting the user's task require the alert role.
Proposal
Add the WAI-ARIA role alert to the the available semantics roles in existing error message-related widget libraries.
Examples of error messages include (but are not limited to):
- After a user unsuccessfully fills in a form because some of the data is in the incorrect format, text is added to the existing form which reads "5 errors on page". The screen reader announces the same message.
- Text description that identifies required fields that were not completed
- Text description when the user provides information that is not in the list of allowed values
- Text description when user input falls outside the required format or values
- Providing suggested correction text
- Providing spell checking and suggestions for text input
Use case
Any element that displays a brief, important, time-sensitive message in a way that attracts the user's attention without interrupting the user's task require the
alertrole.Proposal
Add the WAI-ARIA role
alertto the the available semantics roles in existing error message-related widget libraries.Examples of error messages include (but are not limited to):