HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
2222WF2: Define 'candidate for constraint validation'.2008-09-19 09:11
@@ -25071,20 +25071,24 @@ function AddCloud(data, x, y) { ... }</pre>
 
   <p>The <code title="dom-cva-willValidate">willValidate</code>,
   <code title="dom-cva-validity">validity</code>, and <code
   title="dom-cva-validationMessage">validationMessage</code>
   attributes, and the <code
   title="dom-cva-checkValidatity">checkValidity()</code> and
   <code
   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">
    <dt>Categories</dt>
    <dd><span>Phrasing content</span>.</dd>
    <dd><span>Interactive content</span>.</dd>
    <dd><span>Form-associated element</span>.</dd>
    <dt>Contexts in which this element may be used:</dt>
@@ -26425,20 +26429,25 @@ function AddCloud(data, x, y) { ... }</pre>
 
 
   <h6><dfn title="attr-input-type-hidden">Hidden</dfn> state</h6>
 
   <p>When an <code>input</code> element's <code title="attr-input-type">type</code>
   attribute has the value <code title="attr-input-type-hidden-keyword">hidden</code>,
   it is in the <span title="attr-input-type-hidden">Hidden</span> state.</p>
 
   <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>
   attribute has the value <code title="attr-input-type-submit-keyword">submit</code>,
   it is in the <span title="attr-input-type-submit">Submit Button</span> state.</p>
 
   <p class="big-issue">...</p>
 
@@ -26461,30 +26470,40 @@ rel="" on submit buttons?
 
 
   <h6><dfn title="attr-input-type-reset">Reset Button</dfn> state</h6>
 
   <p>When an <code>input</code> element's <code title="attr-input-type">type</code>
   attribute has the value <code title="attr-input-type-reset-keyword">reset</code>,
   it is in the <span title="attr-input-type-reset">Reset Button</span> state.</p>
 
   <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>
   attribute has the value <code title="attr-input-type-button-keyword">button</code>,
   it is in the <span title="attr-input-type-button">Button</span> state.</p>
 
   <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
   value</dfn>, the user agent must remove any U+000A LINE FEED (LF)
   and U+000D CARRIAGE RETURN (CR) characters from <span
   title="concept-fe-value">value</span>.</p>
 
 
@@ -26567,20 +26586,25 @@ rel="" on submit buttons?
   security implications for the user if support for this attribute is
   disabled.</p>
 
 
   <h6>The <code title="attr-input-readonly">readonly</code> attribute</h6>
 
   <p>The <dfn title="attr-input-readonly"><code>readonly</code></dfn>
   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>
 
   <p>The <dfn title="dom-input-value"><code>value</code></dfn> DOM
   attribute allows secripts to manipulate the <span
   title="concept-input-value">value</span> of an <code>input</code>
   element. On getting, it must return the current <span
@@ -26811,20 +26835,24 @@ rel="" on submit buttons?
    <dt>DOM interface:</dt>
    <dd>
 <pre class="idl">interface <dfn>HTMLDataListElement</dfn> : <span>HTMLElement</span> {
   readonly attribute <span>HTMLOptionsCollection</span> <span title="dom-select-options">options</span>;
 };</pre>
    </dd> 
   </dl>
 
   <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">
    <dt>Categories</dt>
    <dd>None.</dd>
    <dt>Contexts in which this element may be used:</dt>
    <dd>As a child of a <code>select</code> element.</dd>
    <dt>Content model:</dt>
    <dd>Zero or more <code>option</code> elements.</dd>
@@ -26962,20 +26990,25 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
 
   <p>The <code title="dom-cva-willValidate">willValidate</code>,
   <code title="dom-cva-validity">validity</code>, and <code
   title="dom-cva-validationMessage">validationMessage</code>
   attributes, and the <code
   title="dom-cva-checkValidatity">checkValidity()</code> and
   <code
   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">
    <dt>Categories</dt>
    <dd><span>Phrasing content</span>.</dd>
    <dd><span title="category-listed">Listed</span> and <span title="category-reset">resettable</span> <span>form-associated element</span>.</dd>
    <dt>Contexts in which this element may be used:</dt>
    <dd>Where <span>phrasing content</span> is expected.</dd>
@@ -27014,20 +27047,24 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
 
   <p>The <code title="dom-cva-willValidate">willValidate</code>,
   <code title="dom-cva-validity">validity</code>, and <code
   title="dom-cva-validationMessage">validationMessage</code>
   attributes, and the <code
   title="dom-cva-checkValidatity">checkValidity()</code> and
   <code
   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 -->
 
   <p>A <span>form-associated element</span> can have a relationship
   with a <code>form</code> element, which is called the element's
   <dfn>form owner</dfn>. If a <span>form-associated element</span> is
   not associated with a <code>form</code> element, its <span>form
@@ -27113,42 +27150,56 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
    <li><p>Otherwise, the element is left unassociated.</p></li>
 
   </ol>
 
   <p><span title="form-associated element">Form-associated
   elements</span> have a <dfn
   title="dom-fae-form"><code>form</code></dfn> DOM attribute, which,
   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>
 
   <p class="big-issue">... <dfn title="attr-fe-name">name</dfn> content attribute</p>
 
   <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>
   <!-- XXX remember to check for a fieldset ancestor that has its
   disabled attribute set, and always be disabled if you find one -->
 
   <p class="big-issue">... <dfn title="attr-fe-disabled">disabled</dfn> content attribute</p>
 
   <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>
   <!-- XXX autocomplete: define somewhere that the value may be set from a stored value -->
 
 
 
   <h5>Autofocusing a form control</h5>
@@ -27230,22 +27281,27 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
   title="attr-input-type-submit-state">Submit Button</span> state. The
   attributes on the buttons, when omitted, default to the values given
   on the corresponding the <code>form</code> element.</p>
   
 
 
   <h4>Constraints</h4>
 
   <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>
 
 
 
   <h5>Constraint validation</h5>
 
   <p>When the user agent is required to <dfn>statically validate the
   constraints</dfn> of <code>form</code> element <var
@@ -54644,14 +54700,19 @@ TODO (or delay):
 
  XXX * add for="" attribute to <input type="password"> so that you can
        link usernames and passwords. (Jonas Sicking)
  XXX * value for unchecked checkbox?
  XXX * maximum height/width or required ratio for image uploads? - Leons Petrazickis
  XXX * A way to specify the default button - Michael Gratton 
  XXX * <fieldset readonly>?
  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>
 </html>

|