Robust
Content must be robust and compatible with current and future tools, browsers and technologies.
Criteria
Compatible
- 4.1.1 - Parsing Obsolete in version 2.2
- 4.1.2 - Name, Role, Value
- 4.1.3 - Status messages
Compatible
4.1.1 - Parsing
Level A Obsolete in version 2.2The code of the page must not cause browser or assistive technology conflicts. This ensures that content and functionality is presented in a way that works reliably across all supported browsers and assistive technologies.
Understanding Success Criterion 4.1.1: Parsing
Implementation guidance
HTML code must conform to the standard identified in the doctype statement.
ARIA code must conform to the rules for use with the host language (HTML).
Not all errors and warnings raised by an HTML validator have an impact on accessibility. We recommend using the bookmarklets in the testing and assurance page rather than starting with an HTML validator.
How to test with a manual check
Use the two bookmarklets outlined in the article at https://www.tpgi.com/wcag-2-0-parsing-error-bookmarklet
4.1.2 Name, Role, Value
Level AAll interactive components must have an accessible name and role, and the state of the component must be communicated to assistive technologies.
Understanding Success Criterion 4.1.2: Name, Role, Value
Implementation guidance
All interactive elements and components must:
- have an accessible name and;
- an implicit or explicit role and;
- communicate information about their state
See guidance for complex components/widget at https://w3c.github.io/aria-practices
How to test
The guidance at https://w3c.github.io/aria-practices includes testing practices for complex components.
How to test with JAWS/NVDA
Use the arrow keys, Enter key and Spacebar to reach and interact with all the user interface components on the page and check that the screen readers announce all the information necessary to understand the role and current status of the components and how to operate them.
4.1.3 Status messages
Level AThere are different situations where a page needs to dynamically display a status message. These messages need to be conveyed to assistive technology users, even when they don’t receive focus. Where possible, you should avoid disturbing the user’s place in a page.
Understanding Success Criterion 4.1.3: Status Messages
Implementation guidance
Status messages or updates which occur visually should be communicated to screen reader users.
These messages should be non-intrustive and only used when there is a benefit to the user, for instance informing them how many search results have been returned, that errors have occured in their submission or that a form has been successfully submitted.
Generally, a notification/status message should be implemented using an ARIA live region (see https://www.w3.org/TR/wai-aria/#aria-live and https://developer.mozilla.org/en-US/docs/Web/accessibility/aRIA/aRIA_Live_Regions).
Avoid using the assertive setting for aria-live regions. The polite setting is sufficent in most use cases.
Testing with JAWS/NVDA
When completing actions that involve a visual status message or information that a user needs to be made aware of, check that the message is announced to screereader users in a timely manner.
Note - these messages should not interupt the screenreaders current activity but should relay the information at a suitable break in the screenreader audio.
Information about this page
- Created
- 18 July 2024
- Last reviewed
- 18 July 2024
- Last updated
- 18 July 2024
- Reason this page exists
- This page exists to help people understand each of the WCAG Criteria
- Suggest a change or comment
- Issue