W3C home > Mailing lists > Public > public-html@w3.org > April 2008

required radio buttons and checkboxes

From: Ben Boyle <benjamins.boyle@gmail.com>
Date: Tue, 22 Apr 2008 20:57:24 +1000
Message-ID: <5f37426b0804220357y4cdecf69pf3e09df3303953d1@mail.gmail.com>
To: "HTML WG" <public-html@w3.org>

hi all,

I know we haven't got anything official about forms in the HTML5 docs
yet, but in WF2 there is the @required attribute to flag when controls
are required. I'm sure we're all looking forward to specifying
required fields in a consistent and simple manner.

I was wondering how this works with radio buttons and checkboxes,
given there are multiple 'input' elements for the controls, is the
'required' attribute needed on every input? What happens if it is
inconsistently applied to a group?

For what it's worth, I would love to see radio button and checkboxes
supported with more logical markup (like select1/select in xforms).
Has given me plenty of challenges creating consistent layouts for
forms that use label:text-input and legend:radio-buttons pairs ...
simplifying this would be nice (though would still be waiting some
time for backwards compatibility concerns to lessen...)

cheers
Ben
Received on Tuesday, 22 April 2008 10:57:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:16 GMT