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

Re: required radio buttons and checkboxes

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 5 Nov 2008 15:17:38 +0000 (UTC)
To: Ben Boyle <benjamins.boyle@gmail.com>
Cc: HTML WG <public-html@w3.org>
Message-ID: <Pine.LNX.4.62.0811051516350.1237@hixie.dreamhostps.com>

On Tue, 22 Apr 2008, Ben Boyle wrote:
> 
> 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?

As specified, you need it on at least one in the group. Beyond that it 
doesn't matter.


> For what it's worth, I would love to see radio button and checkboxes 
> supported with more logical markup (like select1/select in xforms).

<select> provides the same semantic already, though with a different 
default rendering.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 5 November 2008 15:18:16 GMT

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