Qu'est-ce que Generateur de snippet ARIA Notify ?
The ARIA Notify API (Chrome 141+) provides a programmatic way to announce dynamic content changes to assistive technology. Instead of creating and managing aria-live regions manually, you call ariaNotify('message', { priority, duration, silent }). The API handles the announcement queue, priority ordering, and Promise-based completion. This replaces the common pattern of toggling aria-live region textContent to trigger screen reader announcements.
Réponse rapide
Use ariaNotify('message', { priority, duration }) to programmatically announce content to screen readers. Returns a Promise that resolves when the announcement completes. Chrome 141+. Fallback: use aria-live regions for older browsers.
Limites
- The ARIA Notify API is Chrome 141+ only. Firefox and Safari do not support it yet. A fallback to traditional aria-live regions is required for cross-browser accessibility.
- ariaNotify() requires user activation for important priority announcements — the call must be within a user gesture (click, keypress) or the priority is downgraded to normal.
- Multiple rapid notifications can be coalesced or dropped by the browser. The API is designed for occasional dynamic announcements, not streaming real-time updates.
Comment utiliser cet outil
- Choose the notification message and priority level (normal, important, or none).
- Set the duration in milliseconds or 0 for manual clearing.
- Call ariaNotify() at the appropriate trigger point (form submit, async completion, etc.).
- Include a fallback to aria-live regions for browsers that don't support the API.
A quoi il sert
- Announce form submission results to screen reader users after an AJAX save completes.
- Notify users of new content loaded via infinite scroll or live updates.
- Alert assistive technology users when a timer expires or a background task completes.