<?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>10833</bug_id>
          
          <creation_ts>2010-09-29 15:00:23 +0000</creation_ts>
          <short_desc>The element should only suffer from being missing if all of the checkbox choices are unselected - like radio buttons</short_desc>
          <delta_ts>2010-10-12 16:09:35 +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>pre-LC1 HTML5 spec (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#checkbox-state</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <cc>douglas.wright</cc>
    
    <cc>ian</cc>
    
    <cc>jonas</cc>
    
    <cc>mike</cc>
    
    <cc>mjs</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>39966</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2010-09-29 15:00:23 +0000</bug_when>
    <thetext>Section: http://www.whatwg.org/specs/web-apps/current-work/#checkbox-state

Comment:
The element should only suffer from being missing if all of the checkbox
choices are unselected - like radio buttons

Posted from: 62.232.34.19</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40819</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-10-07 21:47:01 +0000</bug_when>
    <thetext>What do browser vendors think? Worth changing?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40821</commentid>
    <comment_count>2</comment_count>
    <who name="Jonas Sicking (Not reading bugmail)">jonas</who>
    <bug_when>2010-10-07 22:00:05 +0000</bug_when>
    <thetext>I don&apos;t have a strong opinion. The only argument I can think of is that people sometimes use multiple checkboxes in place of &lt;select multiple&gt; since the UI for the latter is pretty terrible. And we do allow @required on the latter.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40822</commentid>
    <comment_count>3</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2010-10-07 22:05:20 +0000</bug_when>
    <thetext>I don&apos;t see a problem with implementing either behavior.

However, checkboxes, unlike radio buttons, do not have any behavior currently that groups via name. This change would be the first to introduce it. Certainly it would not make sense to apply to unnamed checkboxes or to all checkboxes in a form. For example, often a EULA form will have separate &quot;I have read this&quot; and &quot;I agree&quot; checkboxes in the same form which are both independently required to be checked. So this would be the first behavior to treat checkboxes as grouped like radio buttons, which might be confusing.

&quot;Required&quot; also seems like an odd concept for a single checkbox. There are cases (like the aforementioned EULA) where checking a particular checkbox is mandatory to submit the form. But in other cases, on and off are both equally valid states, and can be a willful choice by the user. So that seems different from other uses of required, where they form control fails validation only if, in some sense, &quot;nothing has been chosen&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40823</commentid>
    <comment_count>4</comment_count>
    <who name="Jonas Sicking (Not reading bugmail)">jonas</who>
    <bug_when>2010-10-07 22:13:29 +0000</bug_when>
    <thetext>To be clear, I definitely think that

&lt;form&gt;
  &lt;input type=checkbox name=a required&gt;
  &lt;input type=checkbox name=b required&gt; &lt;!-- Note, different name --&gt;
&lt;/form&gt;

Should be allowed and should require that *both* checkboxes are checked. It was unclear to me if you agreed with that or not Maciej?

What I interpreted the scope of this bug to was if the following markup required only one of the boxes to be checked, or if both had to be checked:

&lt;form&gt;
  &lt;input type=checkbox name=a required&gt;
  &lt;input type=checkbox name=a required&gt; &lt;!-- Note, same name --&gt;
&lt;/form&gt;

There is also the complication of what to do with markup like:

&lt;form&gt;
  &lt;input type=checkbox name=a required&gt;
  &lt;input type=checkbox name=a&gt; &lt;!-- Note, required missing --&gt;
&lt;/form&gt;
This complication is the main reason I&apos;m hesitant to treat the boxes as a group.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40834</commentid>
    <comment_count>5</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2010-10-08 09:17:59 +0000</bug_when>
    <thetext>In Opera right now they work per checkbox. Whether the checkbox is also in a group does not seem to be taken into account. If we do take grouping into account I think both examples Jonas gave at the end of comment 4 should be treated the same way.

Having said that, I think the use case here is the single checkbox, which does not require grouping to be taken into account. So maybe we should keep it simple.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40841</commentid>
    <comment_count>6</comment_count>
    <who name="Doug Wright">douglas.wright</who>
    <bug_when>2010-10-08 12:32:53 +0000</bug_when>
    <thetext>Hi

I was indeed thinking of the case where multiple checkboxes are used instead of &lt;select multiple&gt; - I&apos;ve never seen a normal user successfully work out the ctrl+click behaviour needed to actually select multiple options without explicitly being told.

Often forms have questions that ask &quot;please tick all that apply&quot;. As the spec stands, there is no way to make this be a compulsory question using @required.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41051</commentid>
    <comment_count>7</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-10-12 09:57:46 +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: The argument that this would be introducing checkbox grouping for the first time, and that that is a bit weird, is stronger IMHO than the argument that the feature is useful.

There are ways to do &quot;select all that apply, and select at least one&quot; -- use &lt;select multiple required&gt;. This has the advantage of being much more usable UI-wise.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41132</commentid>
    <comment_count>8</comment_count>
    <who name="Jonas Sicking (Not reading bugmail)">jonas</who>
    <bug_when>2010-10-12 16:09:35 +0000</bug_when>
    <thetext>&gt; There are ways to do &quot;select all that apply, and select at least one&quot; -- use
&gt; &lt;select multiple required&gt;. This has the advantage of being much more usable
&gt; UI-wise.

Actually, that is generally not true. The fact that you have to control-click to select several items makes it hard enough that I think many sites don&apos;t consider it an option.

I am however fine with waiting with this and seeing what author feedback we get. The situation here is different from &lt;select required&gt; since we&apos;d be loosening the restricted behavior, not tightening it.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>