WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: forms and multiple aria-live regions

for

From: Jonathan Avila
Date: May 25, 2018 5:41PM


> Birkir, just to clarify, your example is good when you're hiding/unhiding child elements but if the change is just to the text inside the element, then having aria-live on the child is fine.

I have to concur with Birkir, I've seen aria live on the parent required for some browser combinations in the past. ARIA live support is still very temperamental across browsers and screen readers in my experience.

Jonathan

-----Original Message-----
From: WebAIM-Forum < <EMAIL REMOVED> > On Behalf Of glen walker
Sent: Friday, May 25, 2018 1:06 PM
To: WebAIM Discussion List < <EMAIL REMOVED> >
Subject: Re: [WebAIM] forms and multiple aria-live regions

Birkir, just to clarify, your example is good when you're hiding/unhiding child elements but if the change is just to the text inside the element, then having aria-live on the child is fine.

Glen


On Fri, May 25, 2018 at 9:17 AM, Birkir R. Gunnarsson < <EMAIL REMOVED> > wrote:

> Make sure to place aria-live on the parent of the element that gets
> displayed, not on the eleent itself.
> bad:
> <div aria-live="polite" style="display: none;">There were errors</div>
> Good <div aria-live="polite"> <div style="display: none;">there were
> errors</div> </div>
>