Short URL: http://html5.org/r/2222
| SVN | Bug | Comment | Time (UTC) |
|---|---|---|---|
| 2222 | WF2: Define 'candidate for constraint validation'. | 2008-09-19 09:11 |
Index: source
===================================================================
--- source (revision 2221)
+++ source (revision 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>