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
>
>