E-mail List Archives
Re: role="alert" not being read on page load
From: Laura Fathauer
Date: Jun 14, 2019 6:48AM
- Next message: Joseph Sherman: "Re: role="alert" not being read on page load"
- Previous message: Jim Homme: "Re: Visual Question About Disabled Text and Contrast"
- Next message in Thread: Joseph Sherman: "Re: role="alert" not being read on page load"
- Previous message in Thread: Isabel Holdsworth: "Re: role="alert" not being read on page load"
- View all messages in this Thread
The "alert" region needs to be in the page before content is added to
it. Loading both the alert region and the content when the page loads
generally causes the behavior you are seeing, unless you code in a
pause for adding the content to the alert region. However, if you
follow the things Isabel stated, you wouldn't need the dynamic alert
on the page reload.
Laura
On Fri, Jun 14, 2019 at 4:03 AM Isabel Holdsworth
< <EMAIL REMOVED> > wrote:
>
> Hi Joseph,
>
> This error doesn't need to be an alert, so long as it's positioned
> somewhere in the DOM where it can be easily found, for example just
> after the page's H1 heading.
>
> It would also be helpful to mention in the window title and H1 heading
> that there's an error.
>
> Cheers, Isabel
>
> On 13/06/2019, Bryan Garaventa < <EMAIL REMOVED> > wrote:
> > Hi,
> > ARIA live regions are only meant to fire new content events when content is
> > dynamically added to them, so it's not surprising that nothing is occurring
> > when this is added to a static webpage like this.
> >
> > This is described in the section 3.5.4: Live Region Caveats,
> > http://whatsock.com/training/#hd28
> >
> > This training document was written when ARIA 1.0 was the primary reference,
> > however the guidance here is still valid even with 1.1. I plan to update the
> > reference urls and related sections in the future as 1.1 and 1.2 changes are
> > resolved.
> >
> > All the best,
> > Bryan
> >
> >
> > Bryan Garaventa
> > Principal Accessibility Architect
> > Level Access, Inc.
> > <EMAIL REMOVED>
> > 415.624.2709 (o)
> > www.LevelAccess.com
> >
> >
- Next message: Joseph Sherman: "Re: role="alert" not being read on page load"
- Previous message: Jim Homme: "Re: Visual Question About Disabled Text and Contrast"
- Next message in Thread: Joseph Sherman: "Re: role="alert" not being read on page load"
- Previous message in Thread: Isabel Holdsworth: "Re: role="alert" not being read on page load"
- View all messages in this Thread