<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>16061</bug_id>
          
          <creation_ts>2012-02-21 16:36:58 +0000</creation_ts>
          <short_desc>Required edit should be applicable to fieldset</short_desc>
          <delta_ts>2013-05-16 16:32:25 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>a11y, a11ytf</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>15703</blocked>
    
    <blocked>16029</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Léonie Watson">lwatson</reporter>
          <assigned_to name="Léonie Watson">lwatson</assigned_to>
          <cc>bzbarsky</cc>
    
    <cc>cooper</cc>
    
    <cc>eoconnor</cc>
    
    <cc>evertvandansen</cc>
    
    <cc>faulkner.steve</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>64377</commentid>
    <comment_count>0</comment_count>
    <who name="Léonie Watson">lwatson</who>
    <bug_when>2012-02-21 16:36:58 +0000</bug_when>
    <thetext>When applied to a fieldset, the required attribute would indicate that all form fields within the set were required.

This would be particularly useful when a choice was required from a set of radio buttons.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64378</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Cooper">cooper</who>
    <bug_when>2012-02-21 16:41:26 +0000</bug_when>
    <thetext>Clarification: If the fieldset encloses radio buttons, one of them must be checked. If the fieldset encloses checkoxes, one or more of them must be checked. If the fieldset encloses other fields, all of them are required. Basically, every unique field name enclosed by the fieldset must have a value.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64416</commentid>
    <comment_count>2</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2012-02-22 14:48:35 +0000</bug_when>
    <thetext>&gt; This would be particularly useful when a choice was required from a set of
&gt; radio buttons.

Why?  If @required is set on _any_ radio button in the set, then the entire set is required (in the sense that one of the radio buttons must be selected for the form to submit).  It doesn&apos;t have to be the one with the @required attribute on it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64489</commentid>
    <comment_count>3</comment_count>
    <who name="Evert">evertvandansen</who>
    <bug_when>2012-02-23 16:27:37 +0000</bug_when>
    <thetext>Would the way radiobuttons work with the required attribute also work with checkboxes? Suppose you have a group of checkboxes from which the user is required to select at least one? Wouldn&apos;t the required attribute be more flexible on the fieldset?


As a sidenote: I never understood why there had to be both a checkbox and a radiobutton. Perhaps a bit off-topic, but please consider:


1) a checkbox without a parent fieldset would be just a single checkbox.
2) A group of checkboxes in a fieldset with multiple=false would be a group of radiobuttons
3) A group of checkboxes in a fieldset with multiple=true would be a group of checkboxes
4) If fieldset has required set then at least 1 choice must be made from the checkboxes.
5) optionally: required=x where x is an integer denoting the amount of choices the user must make minimally.

All this would be backward compatible (or could at least be made so).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64490</commentid>
    <comment_count>4</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2012-02-23 16:55:35 +0000</bug_when>
    <thetext>&gt; Would the way radiobuttons work with the required attribute also work with
&gt; checkboxes?

No.

&gt; Suppose you have a group of checkboxes from which the user is
&gt; required to select at least one?

That&apos;s basically what &lt;select multiple required&gt; gives you.  I agree that having a way to do that with checkboxes would be good, but I don&apos;t see why it should depend on fieldsets....</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64491</commentid>
    <comment_count>5</comment_count>
    <who name="Evert">evertvandansen</who>
    <bug_when>2012-02-23 17:12:38 +0000</bug_when>
    <thetext>
&gt; 
&gt; I agree that
&gt; having a way to do that with checkboxes would be good, but I don&apos;t see why it
&gt; should depend on fieldsets....

I am not saying it should. It is just a proposal using what we have in a non-conflicting way (as far as I can see).
I agree with you that select gives us the functional ability and in hindsight it would have been better if radiobuttons, checkboxes and selectboxes would have been condensed into 1 element, but that is not how it is. Add to that the inability of browsers to let us restyle form elements any way we want in an easy and consitent way and I think a bit more flexibility in how we can use fieldsets and checkboxes would go a long way.
But I may be a minority, I do not know.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70125</commentid>
    <comment_count>6</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-18 06:56:14 +0000</bug_when>
    <thetext>This bug was cloned to create bug 17827 as part of operation convergence.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74278</commentid>
    <comment_count>7</comment_count>
    <who name="Edward O&apos;Connor">eoconnor</who>
    <bug_when>2012-09-21 23:27:09 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are
satisfied with this response, please change the state of this bug to CLOSED. If
you have additional information and would like the editor to reconsider, please
reopen this bug. If you would like to escalate the issue to the full HTML
Working Group, please add the TrackerRequest keyword to this bug, and suggest
title and text for the tracker issue; or you may create a tracker issue
yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: No spec change.
Rationale: See comments 2 and 4.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85654</commentid>
    <comment_count>8</comment_count>
    <who name="steve faulkner">faulkner.steve</who>
    <bug_when>2013-04-06 15:21:19 +0000</bug_when>
    <thetext>after re-reading this bug I think it should be closed, with the current resolution accepted.

It was re-opened by the a11y taskforce, but I don&apos;t see anything specific to accessibility about it and the resolution seems reasonable.

This sounds like a new feature request and anybody interested in pursuing should follow up with implementers.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>