WebAIM - Web Accessibility In Mind

E-mail List Archives

html 5 required

for

From: Tomlins Diane
Date: Nov 6, 2017 3:16PM


This just came up for us, and we just switched 70+ code files to use the html 5 "required' attribute. Now we find in testing, using NVDA 2017.3 with Firefox, NVDA announces empty fields as "invalid entry" the first time the user focuses on them, even before the error checking that takes place when a user hits the Submit button. So I would think this would make things confusing for AT users.

We tried adding aria-required="true" but that didn't help since we still have the "required" attribute in there too.

If I understand the replies to this thread, the "required' attribute is still a patchwork of support between browsers and AT??

Our developers won't be thrilled to back-pedal to take out the attribute they just put in :-/

Any possible workaround besides going back?

Thanks!

Diane R Tomlins
HCA IT&S | Digital Media
Accessibility SME