WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Another example of role="alert" not being read by NVDA

for

From: Susan Grossman
Date: May 16, 2013 9:49AM


I would question the use of a role in a span tag.

Have you tried replacing it with a block element like <p> or <div> and see
if it works then? We have come across issues when employing the span tag,
which is really more for styling, for purposes other than style.


On Thu, May 16, 2013 at 7:57 AM, Angela French < <EMAIL REMOVED> > wrote:

> Below is another example from our application of a form field where the
> user, upon form submit, it not being notified of the validation error. For
> this example I have only removed class attributes and values to make it
> easier to read. Can anyone tell me what we are doing wrong please?
>
>
> <label for="ctl00_ContentPlaceHolder1_txtLName"
> id="ctl00_ContentPlaceHolder1_lblLName" ><span >*</span> Last Name:</label>
> <input name="ctl00$ContentPlaceHolder1$txtLName" type="text"
> id="ctl00_ContentPlaceHolder1_txtLName" placeholder="required"
> aria-required="true" aria-labelledby="rfvLName" />
> <span id="rfvLName" role="alert" >Last name required</span>
>
> Angela French
> Internet Specialist
> State Board for Community and Technical Colleges
> 360-704-4316
> <EMAIL REMOVED>
> http://www.checkoutacollege.com/
> http://www.sbctc.edu
>
> > > >



--
*Susan R. Grossman*
<EMAIL REMOVED>