WebAIM - Web Accessibility In Mind

E-mail List Archives

role="alert" not being read on page load

for

From: Joseph Sherman
Date: Jun 13, 2019 2:25PM


Hello. I have a form where after the user submits incorrect information, the page refreshes with an error message with role="alert". However I find the error text is not being read in FireFox with JAWS or NVDA. Code below. Are we doing something wrong?

<div role="alert" class="alert alert-error alert-danger">
<ul><li>More than one user was found that matches the information you provided. Please contact your college support team and tell them you received this error.</li></ul></div>



Joseph