The same messages with the proposed change: the outer container is a region landmark named “System messages”. The message groups, their roles and their headings are unchanged.
What to notice
- The container has
role="region"andaria-label="System messages". That combination is a landmark. - The region is not a live region. It has no
aria-live, norole="status"and norole="alert", so its presence does not add an announcement. - The message groups still carry
statusandalert, so their existing behaviour is kept. - The visual appearance is identical to the Before page; only the wrapper attributes changed.
- The messages remain reachable by heading and reading order, as before. The landmark adds a direct route in the landmarks list.
Next: the same result with a native section, or server and JavaScript messages together.