WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: aria-required="true" and required

for

From: Birkir R. Gunnarsson
Date: Jan 5, 2016 7:28AM


The html5 required is superior to aria-required="true" in that, if the
user does not fill in a required field and then tries to submit the
form, the html5 supporting browser moves the user focus back to the
first empty required field, no Javascript needed.
There are browser/a.t. combinations that expose aria-required="true"
but do not support the html5 required attribute, though as html5
support improves these combinations will eventually disappear (or we
hope so).

Keep in mind that aria-required, just like any other ARIA attribute,
does not imply functionality. It only communicates the fact taht the
field is required to the user. The developer has to make sure to check
for those fields and expose the desired error indication to the user.
-Birkir



On 1/5/16, Marc Solomon < <EMAIL REMOVED> > wrote:
> If the web browser being used doesn't support HTML5, the aria-required
> attribute could serve as a fall back mechanism for AT support.
> Marc
>
> -----Original Message-----
> From: WebAIM-Forum [mailto: <EMAIL REMOVED> ] On Behalf
> Of Ócsvári Áron
> Sent: Tuesday, January 5, 2016 9:11 AM
> To: WebAIM Discussion List < <EMAIL REMOVED> >
> Subject: Re: [WebAIM] aria-required="true" and required
>
> Hello,
> I think no, I tried your code, and NVDA recognised as a required field.
> Regards,
> Aron
> 2016.01.05. 14:58 keltezéssel, Nancy Johnson írta:
>> Form inputs.. If you required in an input <label
>> for="sample">sample </label> <input type="text" required id="sample">
>>
>> Do you need to add aria-required="true" as well?
>>
>> Thanks
>>
>> Nancy
>> >> >> >> >
> > > > > > > > >


--
Work hard. Have fun. Make history.