I believe my question is probably overly simple, but I can't seem to find much information about how role="status" determines what content to announce. Any feedback would be greatly appreciated. Unfortunately, most resources point to this page that 404s https://www.w3.org/TR/wai-aria/roles#status
<div role="status"> is analagous to <div aria-live="polite"> - see reference.
<div role="alert"> is analagous to <div aria-live="assertive" aria-atomic="true"> - see reference.
Live regions are a little tricky. To work correctly, they need to exist in the HTML at time of page-load, but they will only be announced when the content within the container changes. Updating the content within the container is usually accomplished via JavaScript.
When the aria-live attribute is set to an implicit value of polite, screen-readers should finish reading the current item before announcing the live region update.
When the aria-live attribute is set to an implicit value of assertive, screen-readers should interrupt the current flow of text to announce the live region update.
An implicit attribute of aria-atomic="true" means that the entire contents of the live region (not just the new or updated part) will be announced.
Terrill Thompson has a very good ARIA Live Region Test Page that demonstrates how live regions work in action.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With