E-mail List Archives

Re: Valid elements for aria-required

for

From: Alastair Campbell
Date: Jun 28, 2013 5:49AM


James Nurthen wrote:
> IMO yes for SELECT but not for checkbox and radio button. The aria spec
> states that it is valid on the roles
>
...
> - radiogroup <http://www.w3.org/TR/wai-aria/roles#radiogroup>;

At a top level it would make sense to allow for a group of radio
buttons (or checkboxes) to be required. I can see instances where you
don't want to pre-select a radio button, but do want it to be required
(so there is no argument that they just went with the default.)

However, you are right that adding it to the inputs doesn't make much
sense, and there is no defined grouping element we can assume is used.

Patricks idea of fieldsets makes the most sense from an HTML point of
view, perhaps its something that should be added to the HTML5x spec?

-Alastair