WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: aria-required="true" and required

for

Number of posts in this thread: 6 (In chronological order)

From: Nancy Johnson
Date: Tue, Jan 05 2016 6:58AM
Subject: aria-required="true" and required
No previous message | Next message →

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

From: Ócsvári Áron
Date: Tue, Jan 05 2016 7:10AM
Subject: Re: aria-required="true" and required
← Previous message | Next message →

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

From: Marc Solomon
Date: Tue, Jan 05 2016 7:22AM
Subject: Re: aria-required="true" and required
← Previous message | Next message →

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

From: Birkir R. Gunnarsson
Date: Tue, Jan 05 2016 7:28AM
Subject: Re: aria-required="true" and required
← Previous message | Next message →

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

From: Robert Fentress
Date: Tue, Jan 05 2016 9:39AM
Subject: Re: aria-required="true" and required
← Previous message | Next message →

Wouldn't it depend on the circumstance? If there are multiple required
fields, I don't know that I like having the focus stolen like that. I
think I might rather handle it myself.

Best,
Rob

On Tue, Jan 5, 2016 at 9:28 AM, Birkir R. Gunnarsson <
= EMAIL ADDRESS REMOVED = > wrote:

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

From: Sailesh Panchang
Date: Tue, Jan 05 2016 12:53PM
Subject: Re: aria-required="true" and required
← Previous message | No next message

This might be useful
http://www.mindoversight.com/demo/Html5ElementTable.php

Thanks,
Sailesh
On 1/5/16, Robert Fentress < = EMAIL ADDRESS REMOVED = > wrote:
> Wouldn't it depend on the circumstance? If there are multiple required
> fields, I don't know that I like having the focus stolen like that. I
> think I might rather handle it myself.
>
> Best,
> Rob
>
> On Tue, Jan 5, 2016 at 9:28 AM, Birkir R. Gunnarsson <
> = EMAIL ADDRESS REMOVED = > wrote:
>
>> 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 ADDRESS 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
>> >
>> >