Skip to content
Permalink
Browse files

[] (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 92629c02b7f91cd4bc7718afb86600d26e53d430
Showing with 129 additions and 4 deletions.
  1. +66 −2 index
  2. +63 −2 source
68 index
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>


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


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


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


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

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>

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

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

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

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

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

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

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

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

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

0 comments on commit 92629c0

Please sign in to comment.
You can’t perform that action at this time.