WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: search results not being announced


From: Lovely, Brian (CONT)
Date: Jul 31, 2017 2:21PM

This isn't an answer to your question, but I noticed aria-labelledby is being set to a text string. Aria-label accepts a text string, aria-labelledby and aria-describedby accept space-delimited lists of IDs. ...also, aria-labelled by will cause the actual element text to not be read out. You probably want to use aria-describedby instead.


<a id="MainContent_gvResults_lnkDetails_0" class="DetailsLink" aria-labelledby="J M Weatherwax (Aberdeen)" href="javascript:__doPostBack('ctl00$MainContent$gvResults$ctl03$lnkDetails','')">HVAC</a>

Do this kind of thing instead:


<a id="MainContent_gvResults_lnkDetails_0" class="DetailsLink" describedby=" MainContent_gvResults_lblHS_0href="javascript:__doPostBack('ctl00$MainContent$gvResults$ctl03$lnkDetails','')">HVAC</a>

<span id="MainContent_gvResults_lblHS_0">J M Weatherwax (Aberdeen)</span>

...which should read out something like "link HVAC J M Weatherwax open parenthesis Aberdeen close parenthesis"

-----Original Message-----
From: WebAIM-Forum [mailto: <EMAIL REMOVED> ] On Behalf Of Angela French
Sent: Monday, July 31, 2017 4:14 PM
To: WebAim Forum ( <EMAIL REMOVED> ) < <EMAIL REMOVED> >
Subject: [WebAIM] search results not being announced

I'm hoping someone out there in this helpful community and help us figure out why the search results are not being announced on this page<http://devapps.sbctc.edu/TechPrepV2/SearchArticulations>;. There are four form elements to create the query, but just using the Search button will bring back guaranteed results. However they aren't announced. We are trying both area-live="assertive" and aria-atomic="true" and still no announcement that there are results now displayed on the page.

Any guidance appreciated.

Angela French
Internet/Intranet Specialist
Washington State Board for Community and Technical Colleges

The information contained in this e-mail is confidential and/or proprietary to Capital One and/or its affiliates and may only be used solely in performance of work or services for Capital One. The information transmitted herewith is intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer.