This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 25442 - If I used the required attribute in any radio buttons or checkboxes the form was requiring that all boxes or buttons were selected, rather than only requiring one of the options to be selected. Howeve [...]
Summary: If I used the required attribute in any radio buttons or checkboxes the form ...
Status: RESOLVED NEEDSINFO
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-24 13:47 UTC by contributor
Modified: 2014-06-05 21:39 UTC (History)
2 users (show)

See Also:


Attachments

Description contributor 2014-04-24 13:47:22 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/common-input-element-attributes.html
Multipage: http://www.whatwg.org/C#the-required-attribute
Complete: http://www.whatwg.org/c#the-required-attribute
Referrer: http://diveintohtml5.info/forms.html

Comment:
If I used the required attribute in any radio buttons or checkboxes the form
was requiring that all boxes or buttons were selected, rather than only
requiring one of the options to be selected. However, if i put the required
attribute in the fieldset tag, which makes more sense because it is the field
that you are requiring not any of the specific options, then it worked
perfectly. Love all the work you are doing with HTML5 and CSS3. They rock!!!! 

Posted from: 209.217.214.203
User agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36
Comment 1 Ian 'Hixie' Hickson 2014-04-28 23:28:42 UTC
required="" on type=radio should just mean "one of this group", per spec.
required="" on type=checkbox should just mean "this checkbox", per spec.
required="" on <fieldset> should do nothing, per spec.

Does this not match browsers? Do you have a test case showing what you mean?