WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: AT support for required="true"

for

From: Birkir R. Gunnarsson
Date: Mar 1, 2017 10:10AM


Angela

For HTML5 you just need "required" not required="true" or anything.
And, yes, this is mostly true, support is similar for both by now.
The problem (or feature) using required is that, in browsers that
support it, the browsers will move focus to the field and display a
browser status error message.
If you have custom handling of required field with your own messages,
then they may be overridden if you use required, in that case you need
to mark it visualy and use aria-required="true" for assistive
technologies.
I recommend using the required attribute.




On 3/1/17, Angela French < <EMAIL REMOVED> > wrote:
> Good Morning,
>
> Is it safe to assume that in 2017, using both aria-required="true" and
> required="true" is no longer required/suggested on required form elements?
> I'm assuming that there is adequate screen reader support for
> required="true" but wanted to get your opinion.
>
>
> Thank you,
>
> Angela French
> Internet/Intranet Specialist
> Washington State Board for Community and Technical Colleges
> 360-704-4316
> <EMAIL REMOVED> <mailto: <EMAIL REMOVED> >
> www.sbctc.edu<;http://www.sbctc.edu/>;
>
> > > > >


--
Work hard. Have fun. Make history.