E-mail List Archives
Re: html 5 required
From: Beranek, Nicholas
Date: Nov 6, 2017 4:47PM
- Next message: Steve Faulkner: "Re: html 5 required"
- Previous message: Bim Egan: "Re: html 5 required"
- Next message in Thread: Steve Faulkner: "Re: html 5 required"
- Previous message in Thread: Bim Egan: "Re: html 5 required"
- View all messages in this Thread
Hi Diane, I recommend keeping the required attribute. For compatibility, I would add the value "required", as well. You're encountering expected behavior with NVDA and Firefox because, by definition, since a value is required, lack of a value, or null value, would be invalid. I am always hesitant to include a hack to appease a browser/AT, and the use of the required attribute is a sufficient technique.
Nick Beranek
Capital One
On Nov 6, 2017, at 5:17 PM, Tomlins Diane < <EMAIL REMOVED> <mailto: <EMAIL REMOVED> >> wrote:
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
- Next message: Steve Faulkner: "Re: html 5 required"
- Previous message: Bim Egan: "Re: html 5 required"
- Next message in Thread: Steve Faulkner: "Re: html 5 required"
- Previous message in Thread: Bim Egan: "Re: html 5 required"
- View all messages in this Thread