Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[] (0) WF2: Define 'candidate for constraint validation'.
git-svn-id: http://svn.whatwg.org/webapps@2222 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Sep 19, 2008
1 parent 57268b0 commit 92629c0
Show file tree
Hide file tree
Showing 2 changed files with 129 additions and 4 deletions.
68 changes: 66 additions & 2 deletions index
Expand Up @@ -27835,6 +27835,10 @@ function AddCloud(data, x, y) { ... }</pre>
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>

Expand Down Expand Up @@ -29939,6 +29943,12 @@ function AddCloud(data, x, y) { ... }</pre>

<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>

Expand Down Expand Up @@ -29978,6 +29988,12 @@ rel="" on submit buttons?

<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>

Expand All @@ -29989,6 +30005,12 @@ rel="" on submit buttons?

<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
Expand Down Expand Up @@ -30077,6 +30099,11 @@ rel="" on submit buttons?
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>

Expand Down Expand Up @@ -30384,6 +30411,10 @@ rel="" on submit buttons?

<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>

Expand Down Expand Up @@ -30591,6 +30622,11 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href="#htmlelem
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>

Expand Down Expand Up @@ -30659,6 +30695,10 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href="#htmlelem
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 -->
Expand Down Expand Up @@ -30761,6 +30801,10 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href="#htmlelem
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>

Expand All @@ -30772,6 +30816,12 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href="#htmlelem
<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>

Expand All @@ -30786,6 +30836,10 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href="#htmlelem
<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>
Expand Down Expand Up @@ -30892,8 +30946,13 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href="#htmlelem

<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 ...
Expand Down Expand Up @@ -60858,4 +60917,9 @@ TODO (or delay):
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.
-->
65 changes: 63 additions & 2 deletions source
Expand Up @@ -25078,6 +25078,10 @@ function AddCloud(data, x, y) { ... }</pre>
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>
Expand Down Expand Up @@ -26432,6 +26436,11 @@ function AddCloud(data, x, y) { ... }</pre>

<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>
Expand Down Expand Up @@ -26468,6 +26477,11 @@ rel="" on submit buttons?

<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>
Expand All @@ -26478,6 +26492,11 @@ rel="" on submit buttons?

<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>
Expand Down Expand Up @@ -26574,6 +26593,11 @@ rel="" on submit buttons?
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>
Expand Down Expand Up @@ -26818,6 +26842,10 @@ rel="" on submit buttons?

<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>

Expand Down Expand Up @@ -26969,6 +26997,11 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
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>
Expand Down Expand Up @@ -27021,6 +27054,10 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
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>
Expand Down Expand Up @@ -27120,6 +27157,10 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
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>
Expand All @@ -27130,6 +27171,12 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {

<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>
Expand All @@ -27142,6 +27189,10 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {

<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>
Expand Down Expand Up @@ -27237,8 +27288,13 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {

<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>
Expand Down Expand Up @@ -54651,6 +54707,11 @@ TODO (or delay):
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>
Expand Down

0 comments on commit 92629c0

Please sign in to comment.