[html5] r2222 - [] (0) WF2: Define 'candidate for constraint validation'.

whatwg at whatwg.org whatwg at whatwg.org
Fri Sep 19 02:11:27 PDT 2008


Author: ianh
Date: 2008-09-19 02:11:26 -0700 (Fri, 19 Sep 2008)
New Revision: 2222

Modified:
   index
   source
Log:
[] (0) WF2: Define 'candidate for constraint validation'.

Modified: index
===================================================================
--- index	2008-09-19 08:47:48 UTC (rev 2221)
+++ index	2008-09-19 09:11:26 UTC (rev 2222)
@@ -27835,6 +27835,10 @@
    href="#setcustomvalidity">setCustomValidity()</a></code> methods, are part
    of the <a href="#constraint0">constraint validation API</a>.
 
+  <p><strong>Constraint validation:</strong> <code><a
+   href="#fieldset">fieldset</a></code> elements are always <span>barred from
+   constraint validation</span>.
+
   <h4 id=the-label><span class=secno>4.10.3 </span>The <dfn
    id=label><code>label</code></dfn> element</h4>
 
@@ -29939,6 +29943,12 @@
 
   <p class=big-issue>...
 
+  <p><strong>Constraint validation:</strong> If an <code><a
+   href="#input0">input</a></code> element's <code title=attr-input-type><a
+   href="#type14">type</a></code> attribute is in the <a href="#hidden1"
+   title=attr-input-type-hidden>Hidden</a> state, it is <span>barred from
+   constraint validation</span>.
+
   <h6 id=submit><span class=secno>4.10.4.1.17. </span><dfn id=submit2
    title=attr-input-type-submit>Submit Button</dfn> state</h6>
 
@@ -29978,6 +29988,12 @@
 
   <p class=big-issue>...
 
+  <p><strong>Constraint validation:</strong> If an <code><a
+   href="#input0">input</a></code> element's <code title=attr-input-type><a
+   href="#type14">type</a></code> attribute is in the <a href="#reset2"
+   title=attr-input-type-reset>Reset Button</a> state, it is <span>barred
+   from constraint validation</span>.
+
   <h6 id=button><span class=secno>4.10.4.1.20. </span><dfn id=button1
    title=attr-input-type-button>Button</dfn> state</h6>
 
@@ -29989,6 +30005,12 @@
 
   <p class=big-issue>...
 
+  <p><strong>Constraint validation:</strong> If an <code><a
+   href="#input0">input</a></code> element's <code title=attr-input-type><a
+   href="#type14">type</a></code> attribute is in the <a href="#button1"
+   title=attr-input-type-button>Button</a> state, it is <span>barred from
+   constraint validation</span>.
+
   <h6 id=common3><span class=secno>4.10.4.1.21. </span>Common algorithms</h6>
 
   <p>When a user agent is to <dfn id=strip>strip line breaks from the
@@ -30077,6 +30099,11 @@
    href="#boolean0">boolean attribute</a>. When specified, the element is <i
    title=concept-input-immutable><a href="#immutable">immutable</a></i>.
 
+  <p><strong>Constraint validation:</strong> If the <code
+   title=attr-input-readonly><a href="#readonly0">readonly</a></code>
+   attribute is specified on an <code><a href="#input0">input</a></code>
+   element, the element is <span>barred from constraint validation</span>.
+
   <h5 id=common5><span class=secno>4.10.4.3. </span>Common <code><a
    href="#input0">input</a></code> element APIs</h5>
 
@@ -30384,6 +30411,10 @@
 
   <p class=big-issue>...
 
+  <p><strong>Constraint validation:</strong> If an element has a <code><a
+   href="#datalist">datalist</a></code> element ancestor, it is <span>barred
+   from constraint validation</span>.
+
   <h4 id=the-optgroup><span class=secno>4.10.8 </span>The <dfn
    id=optgroup><code>optgroup</code></dfn> element</h4>
 
@@ -30591,6 +30622,11 @@
    href="#setcustomvalidity">setCustomValidity()</a></code> methods, are part
    of the <a href="#constraint0">constraint validation API</a>.
 
+  <p><strong>Constraint validation:</strong> If the <code
+   title=attr-textarea-readonly>readonly</code> attribute is specified on a
+   <code><a href="#textarea">textarea</a></code> element, the element is
+   <span>barred from constraint validation</span>.
+
   <h4 id=the-output><span class=secno>4.10.11 </span>The <dfn
    id=output><code>output</code></dfn> element</h4>
 
@@ -30659,6 +30695,10 @@
    href="#setcustomvalidity">setCustomValidity()</a></code> methods, are part
    of the <a href="#constraint0">constraint validation API</a>.
 
+  <p><strong>Constraint validation:</strong> <code><a
+   href="#output">output</a></code> elements are always <span>barred from
+   constraint validation</span>.
+
   <h4 id=association><span class=secno>4.10.12 </span>Association of controls
    and forms</h4>
   <!-- XXX consider xreffing the 'ID' term in this section -->
@@ -30761,6 +30801,10 @@
    getting, must return the element's <a href="#form-owner">form owner</a>,
    or null if there isn't one.
 
+  <p><strong>Constraint validation:</strong> If an element has no <a
+   href="#form-owner">form owner</a>, it is <span>barred from constraint
+   validation</span>.
+
   <h4 id=attributes1><span class=secno>4.10.13 </span><dfn
    id=attributes4>Attributes common to form controls</dfn></h4>
 
@@ -30772,6 +30816,12 @@
   <p class=big-issue>... <dfn id=name12 title=dom-fe-name>name</dfn> DOM
    attribute
 
+  <p><strong>Constraint validation:</strong> If an element does not have a
+   <code title=attr-fe-name><a href="#name11">name</a></code> attribute
+   specified, or its <code title=attr-fe-name><a
+   href="#name11">name</a></code> attribute's value is the empty string, then
+   it is <span>barred from constraint validation</span>.
+
   <h5 id=enabling><span class=secno>4.10.13.2. </span>Enabling and disabling
    form controls</h5>
 
@@ -30786,6 +30836,10 @@
   <p class=big-issue>... <dfn id=disabled6
    title=dom-fe-disabled>disabled</dfn> DOM attribute
 
+  <p><strong>Constraint validation:</strong> If an element is <a
+   href="#disabled4" title=concept-fe-disabled>disabled</a>, it is
+   <span>barred from constraint validation</span>.
+
   <h5 id=a-form><span class=secno>4.10.13.3. </span>A form control's value</h5>
 
   <p class=big-issue>... <dfn id=value12 title=concept-fe-value>value</dfn></p>
@@ -30892,8 +30946,13 @@
 
   <h5 id=definitions><span class=secno>4.10.15.1. </span>Definitions</h5>
 
-  <p class=big-issue>An element is a <dfn id=candidate>candidate for
-   constraint validation</dfn> ...
+  <p>A <a href="#listed" title=category-listed>listed form-associated
+   element</a> is a <dfn id=candidate>candidate for constraint
+   validation</dfn> unless a condition has <dfn id=barred title="barred from
+   constrain validation">barred the element from constraint validation</dfn>.
+   (For example, an element is <span>barred from constraint validation</span>
+   if it is an <code><a href="#output">output</a></code> or <code><a
+   href="#fieldset">fieldset</a></code> element.)
 
   <p class=big-issue>An element <dfn id=satisfies
    title=concept-fv-valid>satisfies its constraints</dfn> if ...
@@ -60858,4 +60917,9 @@
  XXX * keygen?
  XXX * action="" should be defined as not being relative to base URI
        see https://bugzilla.mozilla.org/show_bug.cgi?id=297761
+ XXX * rephrase things so that an enumerated attribute puts the _element_ into
+       various states, instead of the attribute
+ XXX * make the text consistent about whether it is ":<em>" and
+       ":<strong>" or "</em>:" and "</strong>:". Same for other
+       punctuation.
 -->

Modified: source
===================================================================
--- source	2008-09-19 08:47:48 UTC (rev 2221)
+++ source	2008-09-19 09:11:26 UTC (rev 2222)
@@ -25078,8 +25078,12 @@
   title="dom-cva-setCustomValidity">setCustomValidity()</code>
   methods, are part of the <span>constraint validation API</span>.</p>
 
+  <p><strong>Constraint validation:</strong> <code>fieldset</code>
+  elements are always <span>barred from constraint
+  validation</span>.</p>
 
 
+
   <h4>The <dfn><code>label</code></dfn> element</h4>
 
   <dl class="element">
@@ -26432,8 +26436,13 @@
 
   <p class="big-issue">...</p>
 
+  <p><strong>Constraint validation:</strong> If an <code>input</code>
+  element's <code title="attr-input-type">type</code> attribute is in
+  the <span title="attr-input-type-hidden">Hidden</span> state, it is
+  <span>barred from constraint validation</span>.</p>
 
 
+
   <h6><dfn title="attr-input-type-submit">Submit Button</dfn> state</h6>
 
   <p>When an <code>input</code> element's <code title="attr-input-type">type</code>
@@ -26468,8 +26477,13 @@
 
   <p class="big-issue">...</p>
 
+  <p><strong>Constraint validation:</strong> If an <code>input</code>
+  element's <code title="attr-input-type">type</code> attribute is in
+  the <span title="attr-input-type-reset">Reset Button</span> state,
+  it is <span>barred from constraint validation</span>.</p>
 
 
+
   <h6><dfn title="attr-input-type-button">Button</dfn> state</h6>
 
   <p>When an <code>input</code> element's <code title="attr-input-type">type</code>
@@ -26478,8 +26492,13 @@
 
   <p class="big-issue">...</p>
 
+  <p><strong>Constraint validation:</strong> If an <code>input</code>
+  element's <code title="attr-input-type">type</code> attribute is in
+  the <span title="attr-input-type-button">Button</span> state, it is
+  <span>barred from constraint validation</span>.</p>
 
 
+
   <h6>Common algorithms</h6>
 
   <p>When a user agent is to <dfn>strip line breaks from the
@@ -26574,8 +26593,13 @@
   attribute is a <span>boolean attribute</span>. When specified, the
   element is <i title="concept-input-immutable">immutable</i>.</p>
 
+  <p><strong>Constraint validation:</strong> If the <code
+  title="attr-input-readonly">readonly</code> attribute is specified
+  on an <code>input</code> element, the element is <span>barred from
+  constraint validation</span>.</p>
 
 
+
   <h5>Common <code>input</code> element APIs</h5>
 
   <h6>Value manipulation</h6>
@@ -26818,7 +26842,11 @@
 
   <p class="big-issue">...</p>
 
+  <p><strong>Constraint validation:</strong> If an element has a
+  <code>datalist</code> element ancestor, it is <span>barred from
+  constraint validation</span>.</p>
 
+
   <h4>The <dfn><code>optgroup</code></dfn> element</h4>
 
   <dl class="element">
@@ -26969,8 +26997,13 @@
   title="dom-cva-setCustomValidity">setCustomValidity()</code>
   methods, are part of the <span>constraint validation API</span>.</p>
 
+  <p><strong>Constraint validation:</strong> If the <code
+  title="attr-textarea-readonly">readonly</code> attribute is
+  specified on a <code>textarea</code> element, the element is
+  <span>barred from constraint validation</span>.</p>
 
 
+
   <h4>The <dfn><code>output</code></dfn> element</h4>
 
   <dl class="element">
@@ -27021,8 +27054,12 @@
   title="dom-cva-setCustomValidity">setCustomValidity()</code>
   methods, are part of the <span>constraint validation API</span>.</p>
 
+  <p><strong>Constraint validation:</strong> <code>output</code>
+  elements are always <span>barred from constraint
+  validation</span>.</p>
 
 
+
   <h4>Association of controls and forms</h4>
 
   <!-- XXX consider xreffing the 'ID' term in this section -->
@@ -27120,8 +27157,12 @@
   on getting, must return the element's <span>form owner</span>, or
   null if there isn't one.</p>
 
+  <p><strong>Constraint validation:</strong> If an element has no
+  <span>form owner</span>, it is <span>barred from constraint
+  validation</span>.</p>
 
 
+
   <h4><dfn>Attributes common to form controls</dfn></h4>
 
   <h5>Naming form controls</h5>
@@ -27130,8 +27171,14 @@
 
   <p class="big-issue">... <dfn title="dom-fe-name">name</dfn> DOM attribute</p>
 
+  <p><strong>Constraint validation:</strong> If an element does not
+  have a <code title="attr-fe-name">name</code> attribute specified,
+  or its <code title="attr-fe-name">name</code> attribute's value is
+  the empty string, then it is <span>barred from constraint
+  validation</span>.</p>
 
 
+
   <h5>Enabling and disabling form controls</h5>
 
   <p class="big-issue">... <dfn title="concept-fe-disabled">disabled</dfn></p>
@@ -27142,8 +27189,12 @@
 
   <p class="big-issue">... <dfn title="dom-fe-disabled">disabled</dfn> DOM attribute</p>
 
+  <p><strong>Constraint validation:</strong> If an element is <span
+  title="concept-fe-disabled">disabled</span>, it is <span>barred from
+  constraint validation</span>.</p>
 
 
+
   <h5>A form control's value</h5>
 
   <p class="big-issue">... <dfn title="concept-fe-value">value</dfn></p>
@@ -27237,8 +27288,13 @@
 
   <h5>Definitions</h5>
 
-  <p class="big-issue">An element is a <dfn>candidate for constraint
-  validation</dfn> ...</p>
+  <p>A <span title="category-listed">listed form-associated
+  element</span> is a <dfn>candidate for constraint validation</dfn>
+  unless a condition has <dfn title="barred from constrain
+  validation">barred the element from constraint
+  validation</dfn>. (For example, an element is <span>barred from
+  constraint validation</span> if it is an <code>output</code> or
+  <code>fieldset</code> element.)</p>
 
   <p class="big-issue">An element <dfn
   title="concept-fv-valid">satisfies its constraints</dfn> if ...</p>
@@ -54651,6 +54707,11 @@
  XXX * keygen?
  XXX * action="" should be defined as not being relative to base URI
        see https://bugzilla.mozilla.org/show_bug.cgi?id=297761
+ XXX * rephrase things so that an enumerated attribute puts the _element_ into
+       various states, instead of the attribute
+ XXX * make the text consistent about whether it is ":<em>" and
+       ":<strong>" or "</em>:" and "</strong>:". Same for other
+       punctuation.
 -->
 
  </body>




More information about the Commit-Watchers mailing list