W3C home > Mailing lists > Public > public-html-wg-issue-tracking@w3.org > April 2010

ISSUE-111 (checkbox-required): What does input.@required mean for @type = checkbox? [HTML 5 spec]

From: HTML Weekly Issue Tracker <sysbot+tracker@w3.org>
Date: Wed, 28 Apr 2010 21:33:47 +0000 (GMT)
To: public-html-wg-issue-tracking@w3.org
Message-Id: <20100428213347.DC6836B646@tibor.w3.org>

ISSUE-111 (checkbox-required): What does input.@required mean for @type = checkbox? [HTML 5 spec]

http://www.w3.org/html/wg/tracker/issues/111

Raised by: Maciej Stachowiak
On product: HTML 5 spec

Escalated from: http://www.w3.org/Bugs/Public/show_bug.cgi?id=9160
Escalation requested by: Brenton Simpson

This discussion revolves around the meaning of @required on a checkbox group in
a survey.  By definition. a radio group must have only one choice selected if
it is required.  A checkbox group functions identically to a radio group, but
it can have multiple checked values.  I contend that a checkbox group must have
at least one choice selected if it is required.

The spec currently dictates that @required directly relates to the checkbox it
is on, without consideration for others in the group - right now, any required
checkbox must be ticked.  Consider the following example.

Choose all that apply:
 - checkboxA
 - checkboxB
 - checkboxC

If any or each of these had the @required flag set under the proposed
amendment, one or more must be checked.  Currently, any that is @required MUST
be checked.

This amendment has no affect on checkbox widgets with unique names.  A checkbox
with a unique name and the @required flag set will have the same meaning
regardless of if the amendment is ratified.
Received on Wednesday, 28 April 2010 21:33:49 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:48:29 UTC