WebAIM - Web Accessibility In Mind

E-mail List Archives

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

for

From: Angela French
Date: May 16, 2013 8:57AM


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