[html5] r8746 - [e] (0) Try to clarify 'form control is disabled'. Fixing https://www.w3.org/Bug [...]

whatwg at whatwg.org whatwg at whatwg.org
Thu Sep 4 15:22:17 PDT 2014


Author: ianh
Date: 2014-09-04 15:22:13 -0700 (Thu, 04 Sep 2014)
New Revision: 8746

Modified:
   complete.html
   index
   source
Log:
[e] (0) Try to clarify 'form control is disabled'.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=26226
Affected topics: HTML

Modified: complete.html
===================================================================
--- complete.html	2014-09-04 22:06:30 UTC (rev 8745)
+++ complete.html	2014-09-04 22:22:13 UTC (rev 8746)
@@ -39764,11 +39764,14 @@
   <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>
+
   
 
   <p>A form control that is <a href=#concept-fe-disabled id=enabling-and-disabling-form-controls:-the-disabled-attribute:concept-fe-disabled>disabled</a> must prevent any <code id=enabling-and-disabling-form-controls:-the-disabled-attribute:event-click><a href=#event-click>click</a></code> events that are <a href=#queue-a-task id=enabling-and-disabling-form-controls:-the-disabled-attribute:queue-a-task>queued</a> on the

Modified: index
===================================================================
--- index	2014-09-04 22:06:30 UTC (rev 8745)
+++ index	2014-09-04 22:22:13 UTC (rev 8746)
@@ -39764,11 +39764,14 @@
   <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>
+
   
 
   <p>A form control that is <a href=#concept-fe-disabled id=enabling-and-disabling-form-controls:-the-disabled-attribute:concept-fe-disabled>disabled</a> must prevent any <code id=enabling-and-disabling-form-controls:-the-disabled-attribute:event-click><a href=#event-click>click</a></code> events that are <a href=#queue-a-task id=enabling-and-disabling-form-controls:-the-disabled-attribute:queue-a-task>queued</a> on the

Modified: source
===================================================================
--- source	2014-09-04 22:06:30 UTC (rev 8745)
+++ source	2014-09-04 22:22:13 UTC (rev 8746)
@@ -51097,12 +51097,21 @@
   <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>
 
   <p>A form control that is <span data-x="concept-fe-disabled">disabled</span> must prevent any <code



More information about the Commit-Watchers mailing list