Qu'est-ce que Générateur de régions ARIA live ?
An ARIA live region is an HTML element that screen readers monitor for content changes and automatically announce to the user. This enables dynamic content updates — like form validation errors, status messages, or chat messages — to be read aloud without moving keyboard focus. The aria-live attribute controls how urgently changes are announced (polite or assertive).
Réponse rapide
Create an ARIA live region to announce dynamic content updates to screen reader users. Use role=status (polite) for advisory updates, role=alert (assertive) for critical alerts. The region must exist in the DOM on page load and content should be updated via textContent, not innerHTML.
Limites
- ARIA live regions only work with screen readers that support them. Users browsing visually without a screen reader do not see any visual indication of live region updates unless you add one.
- aria-live=assertive interrupts screen readers immediately, which can be disruptive for users who rely on audio pacing. Use sparingly and only for truly critical messages.
- Frequent or rapid textContent updates can cause screen readers to queue announcements and fall behind. Debounce updates that happen more than once per second.
Comment utiliser cet outil
- Choose the region type based on how critical the updates are — status for advisory, alert for urgent, log for sequential updates.
- Configure aria-atomic (read entire region or only changes) and aria-relevant (what types of DOM changes trigger announcements).
- Copy the HTML snippet with or without the JavaScript update helper.
- Place the live region in the DOM on page load so screen readers can register it.
A quoi il sert
- Add a status region for form validation feedback that screen readers announce without moving focus.
- Create an alert region for critical error messages that interrupt the user immediately.
- Build a chat message log where new messages are announced in order as they appear.