E-mail List Archives

Re: Valid elements for aria-required

for

From: James Nurthen
Date: Jun 27, 2013 5:55PM


IMO yes for SELECT but not for checkbox and radio button. The aria spec
states that it is valid on the roles

- combobox <http://www.w3.org/TR/wai-aria/roles#combobox>;
- gridcell <http://www.w3.org/TR/wai-aria/roles#gridcell>;
- listbox <http://www.w3.org/TR/wai-aria/roles#listbox>;
- radiogroup <http://www.w3.org/TR/wai-aria/roles#radiogroup>;
- spinbutton <http://www.w3.org/TR/wai-aria/roles#spinbutton>;
- textbox <http://www.w3.org/TR/wai-aria/roles#textbox>;
- tree <http://www.w3.org/TR/wai-aria/roles#tree>;


Listbox is the ARIA equivalent of SELECT but the list above does not
include checkbox and radiobutton. I'm not sure what required means on a
checkbox or radiobutton anyway.

Regards,
James


On Thu, Jun 27, 2013 at 4:02 PM, Alastair Campbell < <EMAIL REMOVED> > wrote:

> Hi everyone,
>
> I was just about to enter a bug for a screen reader about
> aria-required not working on some form elements, and realised I don't
> have a list of the requirements it should work on.
>
> In the WAI-ARIA spec [1] it says 'form elements that require input or
> selection by the user', should that include radio buttons, checkboxs
> and select elements?
>
> The HTML5 spec doesn't appear to specify [2], and all the examples
> only seem to use text inputs. I could be looking in the wrong place
> there though!
>
> Would it be valid to raise a big that required doesn't work on other
> form elements?
>
> -Alastair
>
> 1] http://www.w3.org/TR/wai-aria/states_and_properties#aria-required
> 2]
> http://www.w3.org/html/wg/drafts/html/master/forms.html#concept-input-required
> > > >