<?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>10909</bug_id>
          
          <creation_ts>2010-09-30 22:09:40 +0000</creation_ts>
          <short_desc>Clarify how fieldset&apos;s first legend should behave if the fieldset is disabled because of another disabled fieldset</short_desc>
          <delta_ts>2010-10-14 09:31:10 +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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mounir Lamouri">mounir</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</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>40318</commentid>
    <comment_count>0</comment_count>
    <who name="Mounir Lamouri">mounir</who>
    <bug_when>2010-09-30 22:09:40 +0000</bug_when>
    <thetext>The specifications should make clear that, in the following case, the legend should be disabled:
&lt;fieldset disabled&gt;
  &lt;fieldset&gt;
    &lt;legend&gt;&lt;/legend&gt;
  &lt;/fieldset&gt;
&lt;/fieldset&gt;

The current state of the specifications might let think the readers the should be done this way but isn&apos;t clear clear.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40604</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-10-05 00:41:12 +0000</bug_when>
    <thetext>Why would the legend&apos;s form controls not be disabled? It&apos;s not the child of the first &lt;fieldset&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40772</commentid>
    <comment_count>2</comment_count>
    <who name="Mounir Lamouri">mounir</who>
    <bug_when>2010-10-07 10:30:57 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Why would the legend&apos;s form controls not be disabled? It&apos;s not the child of the
&gt; first &lt;fieldset&gt;.

In that case too:
&lt;fieldset disabled&gt;
  &lt;fieldset disabled&gt;
    &lt;legend&gt;&lt;input&gt;&lt;/legend&gt;
  &lt;/fieldset&gt;
&lt;/fieldset&gt;

&lt;input&gt; should be disabled.

The specifications requires that the first fieldset&apos;s form controls are disabled if not in its first legend so &lt;input&gt; will be disabled because of that. However, the second fieldset will keep &lt;input&gt; enabled.

So, a careful reading can let the reader think that &lt;input&gt; should be disabled but a clarification might be appreciated because it&apos;s hard to say if that is by chance or not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41038</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-10-12 09:34:18 +0000</bug_when>
    <thetext>Hm, yeah, I&apos;ll make sure it&apos;s clear. Thanks for your patience.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41298</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-10-14 07:40:16 +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: Partially Accepted
Change Description: see diff given below
Rationale: The spec actually is pretty clear. It says that disabled will disable certain controls. Nothing says that the lack of the disabled attribute enables anything; indeed, there are many cases where that isn&apos;t the case (the simplest being the control itself being independently disabled).

I&apos;ve added an example though that shows this case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41299</commentid>
    <comment_count>5</comment_count>
    <who name="">contributor</who>
    <bug_when>2010-10-14 07:40:50 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r5621.
Check-in comment: new example of nested disabled fieldsets
http://html5.org/tools/web-apps-tracker?from=5620&amp;to=5621</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41329</commentid>
    <comment_count>6</comment_count>
    <who name="Mounir Lamouri">mounir</who>
    <bug_when>2010-10-14 09:31:10 +0000</bug_when>
    <thetext>Thanks :)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>