Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[e] (0) Try to clarify 'form control is disabled'.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=26226
Affected topics: HTML

git-svn-id: http://svn.whatwg.org/webapps@8746 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Sep 4, 2014
1 parent 10ab760 commit 91b3199
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 13 deletions.
11 changes: 7 additions & 4 deletions complete.html
Expand Up @@ -39764,10 +39764,13 @@ <h5 id=enabling-and-disabling-form-controls:-the-disabled-attribute>4.10.19.5 En
<p>The <dfn id=attr-fe-disabled><code>disabled</code></dfn> content attribute is a
<a href=#boolean-attribute id=enabling-and-disabling-form-controls:-the-disabled-attribute:boolean-attribute>boolean attribute</a>.</p>

<p>A form control is <dfn id=concept-fe-disabled>disabled</dfn> if its <code id=enabling-and-disabling-form-controls:-the-disabled-attribute:attr-fe-disabled-2><a href=#attr-fe-disabled>disabled</a></code> attribute is set, or if it is a descendant of a
<code id=enabling-and-disabling-form-controls:-the-disabled-attribute:the-fieldset-element><a href=#the-fieldset-element>fieldset</a></code> element whose <code id=enabling-and-disabling-form-controls:-the-disabled-attribute:attr-fieldset-disabled><a href=#attr-fieldset-disabled>disabled</a></code> attribute
is set and is <em>not</em> a descendant of that <code id=enabling-and-disabling-form-controls:-the-disabled-attribute:the-fieldset-element-2><a href=#the-fieldset-element>fieldset</a></code> element's first
<code id=enabling-and-disabling-form-controls:-the-disabled-attribute:the-legend-element><a href=#the-legend-element>legend</a></code> element child, if any.</p>
<p>A form control is <dfn id=concept-fe-disabled>disabled</dfn> if any of the following
conditions are met:</p>

<ol><li>The <code id=enabling-and-disabling-form-controls:-the-disabled-attribute:attr-fe-disabled-2><a href=#attr-fe-disabled>disabled</a></code> attribute is a conforming attribute on
this element, and is specified on this element (regardless of its value).<li>The element is a descendant of a <code id=enabling-and-disabling-form-controls:-the-disabled-attribute:the-fieldset-element><a href=#the-fieldset-element>fieldset</a></code> element whose <code id=enabling-and-disabling-form-controls:-the-disabled-attribute:attr-fieldset-disabled><a href=#attr-fieldset-disabled>disabled</a></code> attribute is specified, and is <em>not</em> a
descendant of that <code id=enabling-and-disabling-form-controls:-the-disabled-attribute:the-fieldset-element-2><a href=#the-fieldset-element>fieldset</a></code> element's first <code id=enabling-and-disabling-form-controls:-the-disabled-attribute:the-legend-element><a href=#the-legend-element>legend</a></code> element child, if
any.</ol>



Expand Down
11 changes: 7 additions & 4 deletions index
Expand Up @@ -39764,10 +39764,13 @@ out of 233 257 824 bytes available&lt;/meter>&lt;/p></pre>
<p>The <dfn id=attr-fe-disabled><code>disabled</code></dfn> content attribute is a
<a href=#boolean-attribute id=enabling-and-disabling-form-controls:-the-disabled-attribute:boolean-attribute>boolean attribute</a>.</p>

<p>A form control is <dfn id=concept-fe-disabled>disabled</dfn> if its <code id=enabling-and-disabling-form-controls:-the-disabled-attribute:attr-fe-disabled-2><a href=#attr-fe-disabled>disabled</a></code> attribute is set, or if it is a descendant of a
<code id=enabling-and-disabling-form-controls:-the-disabled-attribute:the-fieldset-element><a href=#the-fieldset-element>fieldset</a></code> element whose <code id=enabling-and-disabling-form-controls:-the-disabled-attribute:attr-fieldset-disabled><a href=#attr-fieldset-disabled>disabled</a></code> attribute
is set and is <em>not</em> a descendant of that <code id=enabling-and-disabling-form-controls:-the-disabled-attribute:the-fieldset-element-2><a href=#the-fieldset-element>fieldset</a></code> element's first
<code id=enabling-and-disabling-form-controls:-the-disabled-attribute:the-legend-element><a href=#the-legend-element>legend</a></code> element child, if any.</p>
<p>A form control is <dfn id=concept-fe-disabled>disabled</dfn> if any of the following
conditions are met:</p>

<ol><li>The <code id=enabling-and-disabling-form-controls:-the-disabled-attribute:attr-fe-disabled-2><a href=#attr-fe-disabled>disabled</a></code> attribute is a conforming attribute on
this element, and is specified on this element (regardless of its value).<li>The element is a descendant of a <code id=enabling-and-disabling-form-controls:-the-disabled-attribute:the-fieldset-element><a href=#the-fieldset-element>fieldset</a></code> element whose <code id=enabling-and-disabling-form-controls:-the-disabled-attribute:attr-fieldset-disabled><a href=#attr-fieldset-disabled>disabled</a></code> attribute is specified, and is <em>not</em> a
descendant of that <code id=enabling-and-disabling-form-controls:-the-disabled-attribute:the-fieldset-element-2><a href=#the-fieldset-element>fieldset</a></code> element's first <code id=enabling-and-disabling-form-controls:-the-disabled-attribute:the-legend-element><a href=#the-legend-element>legend</a></code> element child, if
any.</ol>



Expand Down
19 changes: 14 additions & 5 deletions source
Expand Up @@ -51097,11 +51097,20 @@ out of 233&#x2009;257&#x2009;824 bytes available&lt;/meter>&lt;/p></pre>
<p>The <dfn><code data-x="attr-fe-disabled">disabled</code></dfn> content attribute is a
<span>boolean attribute</span>.</p>

<p>A form control is <dfn data-x="concept-fe-disabled">disabled</dfn> if its <code
data-x="attr-fe-disabled">disabled</code> attribute is set, or if it is a descendant of a
<code>fieldset</code> element whose <code data-x="attr-fieldset-disabled">disabled</code> attribute
is set and is <em>not</em> a descendant of that <code>fieldset</code> element's first
<code>legend</code> element child, if any.</p>
<p>A form control is <dfn data-x="concept-fe-disabled">disabled</dfn> if any of the following
conditions are met:</p>

<ol>

<li>The <code data-x="attr-fe-disabled">disabled</code> attribute is a conforming attribute on
this element, and is specified on this element (regardless of its value).</li>

<li>The element is a descendant of a <code>fieldset</code> element whose <code
data-x="attr-fieldset-disabled">disabled</code> attribute is specified, and is <em>not</em> a
descendant of that <code>fieldset</code> element's first <code>legend</code> element child, if
any.</li>

</ol>

<div w-nodev>

Expand Down

0 comments on commit 91b3199

Please sign in to comment.