Skip to content

Commit

Permalink
[] (0) WF2: Cross-refence the Constraint Validation API attributes an…
Browse files Browse the repository at this point in the history
…d methods into their own dedicated section.

git-svn-id: http://svn.whatwg.org/webapps@2188 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Sep 16, 2008
1 parent 64b7ade commit f6b8aa2
Show file tree
Hide file tree
Showing 2 changed files with 227 additions and 69 deletions.
161 changes: 125 additions & 36 deletions index
Expand Up @@ -29,7 +29,7 @@

<h1 id=html-5>HTML 5</h1>

<h2 class="no-num no-toc" id=draft>Draft Recommendation &mdash; 15
<h2 class="no-num no-toc" id=draft>Draft Recommendation &mdash; 16
September 2008</h2>

<p>You can take part in this work. <a
Expand Down Expand Up @@ -1066,8 +1066,18 @@
<li><a href="#attributes2"><span class=secno>4.9.14 </span>Attributes
for form submission</a>

<li><a href="#constraint"><span class=secno>4.9.15 </span>Constraint
validation</a>
<li><a href="#constraints"><span class=secno>4.9.15
</span>Constraints</a>
<ul class=toc>
<li><a href="#definitions"><span class=secno>4.9.15.1.
</span>Definitions</a>

<li><a href="#constraint"><span class=secno>4.9.15.2.
</span>Constraint validation</a>

<li><a href="#the-constraint"><span class=secno>4.9.15.3. </span>The
constraint validation API</a>
</ul>

<li><a href="#form-submission"><span class=secno>4.9.16 </span>Form
submission</a>
Expand Down Expand Up @@ -26776,11 +26786,11 @@ function AddCloud(data, x, y) { ... }</pre>

readonly attribute <a href="#htmlformcontrolscollection0">HTMLFormControlsCollection</a> <a href="#elements4" title=dom-fieldset-elements>elements</a>;

readonly attribute boolean <span title=dom-fieldset-willValidate>willValidate</span>;
readonly attribute <span>ValidityState</span> <span title=dom-fieldset-validity>validity</span>;
readonly attribute DOMString <span title=dom-fieldset-validationMessage>validationMessage</span>;
boolean <span title=dom-fieldset-checkValidatity>checkValidity</span>();
void <span title=dom-fieldset-setCustomValidity>setCustomValidity</span>(in DOMString error);
readonly attribute boolean <a href="#willvalidate" title=dom-cva-willValidate>willValidate</a>;
readonly attribute <span>ValidityState</span> <a href="#validity" title=dom-cva-validity>validity</a>;
readonly attribute DOMString <a href="#validationmessage" title=dom-cva-validationMessage>validationMessage</a>;
boolean <a href="#checkvalidity0" title=dom-cva-checkValidatity>checkValidity</a>();
void <a href="#setcustomvalidity" title=dom-cva-setCustomValidity>setCustomValidity</a>(in DOMString error);
};</pre>
</dl>

Expand Down Expand Up @@ -26819,7 +26829,16 @@ function AddCloud(data, x, y) { ... }</pre>
href="#listed" title=category-listed>listed</a> elements that are
descendants of the <code><a href="#fieldset">fieldset</a></code> element.

<p class=big-issue>...
<p>The <code title=dom-cva-willValidate><a
href="#willvalidate">willValidate</a></code>, <code
title=dom-cva-validity><a href="#validity">validity</a></code>, and <code
title=dom-cva-validationMessage><a
href="#validationmessage">validationMessage</a></code> attributes, and the
<code title=dom-cva-checkValidatity><a
href="#checkvalidity0">checkValidity()</a></code> and <code
title=dom-cva-setCustomValidity><a
href="#setcustomvalidity">setCustomValidity()</a></code> methods, are part
of the <a href="#constraint0">constraint validation API</a>.

<h4 id=the-input><span class=secno>4.9.3 </span>The <dfn
id=input0><code>input</code></dfn> element</h4>
Expand Down Expand Up @@ -26937,11 +26956,11 @@ function AddCloud(data, x, y) { ... }</pre>
void <span title=dom-input-stepUp>stepUp</span>(in int n);
void <span title=dom-input-stepDown>stepDown</span>(in int n);

readonly attribute boolean <span title=dom-input-willValidate>willValidate</span>;
readonly attribute <span>ValidityState</span> <span title=dom-input-validity>validity</span>;
readonly attribute DOMString <span title=dom-input-validationMessage>validationMessage</span>;
boolean <span title=dom-input-checkValidatity>checkValidity</span>();
void <span title=dom-input-setCustomValidity>setCustomValidity</span>(in DOMString error);
readonly attribute boolean <a href="#willvalidate" title=dom-cva-willValidate>willValidate</a>;
readonly attribute <span>ValidityState</span> <a href="#validity" title=dom-cva-validity>validity</a>;
readonly attribute DOMString <a href="#validationmessage" title=dom-cva-validationMessage>validationMessage</a>;
boolean <a href="#checkvalidity0" title=dom-cva-checkValidatity>checkValidity</a>();
void <a href="#setcustomvalidity" title=dom-cva-setCustomValidity>setCustomValidity</a>(in DOMString error);
};</pre>
</dl>
<!-- XXX add selectionStart and company -->
Expand All @@ -26966,6 +26985,17 @@ function AddCloud(data, x, y) { ... }</pre>
rel="" on submit buttons?
-->

<p>The <code title=dom-cva-willValidate><a
href="#willvalidate">willValidate</a></code>, <code
title=dom-cva-validity><a href="#validity">validity</a></code>, and <code
title=dom-cva-validationMessage><a
href="#validationmessage">validationMessage</a></code> attributes, and the
<code title=dom-cva-checkValidatity><a
href="#checkvalidity0">checkValidity()</a></code> and <code
title=dom-cva-setCustomValidity><a
href="#setcustomvalidity">setCustomValidity()</a></code> methods, are part
of the <a href="#constraint0">constraint validation API</a>.

<h4 id=the-button><span class=secno>4.9.4 </span>The <dfn
id=button><code>button</code></dfn> element</h4>

Expand Down Expand Up @@ -27028,11 +27058,11 @@ rel="" on submit buttons?

readonly attribute <a href="#htmlcollection0">HTMLCollection</a> <span title=dom-button-labels>labels</span>;

readonly attribute boolean <span title=dom-button-willValidate>willValidate</span>;
readonly attribute <span>ValidityState</span> <span title=dom-button-validity>validity</span>;
readonly attribute DOMString <span title=dom-button-validationMessage>validationMessage</span>;
boolean <span title=dom-button-checkValidatity>checkValidity</span>();
void <span title=dom-button-setCustomValidity>setCustomValidity</span>(in DOMString error);
readonly attribute boolean <a href="#willvalidate" title=dom-cva-willValidate>willValidate</a>;
readonly attribute <span>ValidityState</span> <a href="#validity" title=dom-cva-validity>validity</a>;
readonly attribute DOMString <a href="#validationmessage" title=dom-cva-validationMessage>validationMessage</a>;
boolean <a href="#checkvalidity0" title=dom-cva-checkValidatity>checkValidity</a>();
void <a href="#setcustomvalidity" title=dom-cva-setCustomValidity>setCustomValidity</a>(in DOMString error);
};</pre>
</dl>

Expand All @@ -27044,6 +27074,17 @@ rel="" on submit buttons?
href="#form-owner">form owner</a>. The <code title=attr-fe-name><a
href="#name11">name</a></code> attribute represents the element's name.

<p>The <code title=dom-cva-willValidate><a
href="#willvalidate">willValidate</a></code>, <code
title=dom-cva-validity><a href="#validity">validity</a></code>, and <code
title=dom-cva-validationMessage><a
href="#validationmessage">validationMessage</a></code> attributes, and the
<code title=dom-cva-checkValidatity><a
href="#checkvalidity0">checkValidity()</a></code> and <code
title=dom-cva-setCustomValidity><a
href="#setcustomvalidity">setCustomValidity()</a></code> methods, are part
of the <a href="#constraint0">constraint validation API</a>.

<h4 id=the-label><span class=secno>4.9.5 </span>The <dfn
id=label><code>label</code></dfn> element</h4>

Expand Down Expand Up @@ -27158,11 +27199,11 @@ more than one control, no controls?
void <span title=dom-select-add>add</span>(in <a href="#htmlelement">HTMLElement</a> element, in <a href="#htmlelement">HTMLElement</a> before);
void <span title=dom-select-remove>remove</span>(in long index);

readonly attribute boolean <span title=dom-select-willValidate>willValidate</span>;
readonly attribute <span>ValidityState</span> <span title=dom-select-validity>validity</span>;
readonly attribute DOMString <span title=dom-select-validationMessage>validationMessage</span>;
boolean <span title=dom-select-checkValidatity>checkValidity</span>();
void <span title=dom-select-setCustomValidity>setCustomValidity</span>(in DOMString error);
readonly attribute boolean <a href="#willvalidate" title=dom-cva-willValidate>willValidate</a>;
readonly attribute <span>ValidityState</span> <a href="#validity" title=dom-cva-validity>validity</a>;
readonly attribute DOMString <a href="#validationmessage" title=dom-cva-validationMessage>validationMessage</a>;
boolean <a href="#checkvalidity0" title=dom-cva-checkValidatity>checkValidity</a>();
void <a href="#setcustomvalidity" title=dom-cva-setCustomValidity>setCustomValidity</a>(in DOMString error);
};</pre>
</dl>

Expand All @@ -27174,6 +27215,17 @@ more than one control, no controls?
href="#form-owner">form owner</a>. The <code title=attr-fe-name><a
href="#name11">name</a></code> attribute represents the element's name.

<p>The <code title=dom-cva-willValidate><a
href="#willvalidate">willValidate</a></code>, <code
title=dom-cva-validity><a href="#validity">validity</a></code>, and <code
title=dom-cva-validationMessage><a
href="#validationmessage">validationMessage</a></code> attributes, and the
<code title=dom-cva-checkValidatity><a
href="#checkvalidity0">checkValidity()</a></code> and <code
title=dom-cva-setCustomValidity><a
href="#setcustomvalidity">setCustomValidity()</a></code> methods, are part
of the <a href="#constraint0">constraint validation API</a>.

<h4 id=the-datalist><span class=secno>4.9.7 </span>The <dfn
id=datalist><code>datalist</code></dfn> element</h4>

Expand Down Expand Up @@ -27384,11 +27436,11 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href="#htmlelem

readonly attribute <a href="#htmlcollection0">HTMLCollection</a> <span title=dom-textarea-labels>labels</span>;

readonly attribute boolean <span title=dom-textarea-willValidate>willValidate</span>;
readonly attribute <span>ValidityState</span> <span title=dom-textarea-validity>validity</span>;
readonly attribute DOMString <span title=dom-textarea-validationMessage>validationMessage</span>;
boolean <span title=dom-textarea-checkValidatity>checkValidity</span>();
void <span title=dom-textarea-setCustomValidity>setCustomValidity</span>(in DOMString error);
readonly attribute boolean <a href="#willvalidate" title=dom-cva-willValidate>willValidate</a>;
readonly attribute <span>ValidityState</span> <a href="#validity" title=dom-cva-validity>validity</a>;
readonly attribute DOMString <a href="#validationmessage" title=dom-cva-validationMessage>validationMessage</a>;
boolean <a href="#checkvalidity0" title=dom-cva-checkValidatity>checkValidity</a>();
void <a href="#setcustomvalidity" title=dom-cva-setCustomValidity>setCustomValidity</a>(in DOMString error);
};</pre>
</dl>
<!-- XXX add selectionStart and company -->
Expand All @@ -27401,6 +27453,17 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href="#htmlelem
href="#form-owner">form owner</a>. The <code title=attr-fe-name><a
href="#name11">name</a></code> attribute represents the element's name.

<p>The <code title=dom-cva-willValidate><a
href="#willvalidate">willValidate</a></code>, <code
title=dom-cva-validity><a href="#validity">validity</a></code>, and <code
title=dom-cva-validationMessage><a
href="#validationmessage">validationMessage</a></code> attributes, and the
<code title=dom-cva-checkValidatity><a
href="#checkvalidity0">checkValidity()</a></code> and <code
title=dom-cva-setCustomValidity><a
href="#setcustomvalidity">setCustomValidity()</a></code> methods, are part
of the <a href="#constraint0">constraint validation API</a>.

<h4 id=the-output><span class=secno>4.9.11 </span>The <dfn
id=output><code>output</code></dfn> element</h4>

Expand Down Expand Up @@ -27442,11 +27505,11 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href="#htmlelem
attribute DOMString <span title=dom-output-defaultValue>defaultValue</span>;
attribute DOMString <span title=dom-output-value>value</span>;

readonly attribute boolean <span title=dom-output-willValidate>willValidate</span>;
readonly attribute <span>ValidityState</span> <span title=dom-output-validity>validity</span>;
readonly attribute DOMString <span title=dom-output-validationMessage>validationMessage</span>;
boolean <span title=dom-output-checkValidatity>checkValidity</span>();
void <span title=dom-output-setCustomValidity>setCustomValidity</span>(in DOMString error);
readonly attribute boolean <a href="#willvalidate" title=dom-cva-willValidate>willValidate</a>;
readonly attribute <span>ValidityState</span> <a href="#validity" title=dom-cva-validity>validity</a>;
readonly attribute DOMString <a href="#validationmessage" title=dom-cva-validationMessage>validationMessage</a>;
boolean <a href="#checkvalidity0" title=dom-cva-checkValidatity>checkValidity</a>();
void <a href="#setcustomvalidity" title=dom-cva-setCustomValidity>setCustomValidity</a>(in DOMString error);
};</pre>
</dl>

Expand All @@ -27458,6 +27521,17 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href="#htmlelem
href="#form-owner">form owner</a>. The <code title=attr-fe-name><a
href="#name11">name</a></code> attribute represents the element's name.

<p>The <code title=dom-cva-willValidate><a
href="#willvalidate">willValidate</a></code>, <code
title=dom-cva-validity><a href="#validity">validity</a></code>, and <code
title=dom-cva-validationMessage><a
href="#validationmessage">validationMessage</a></code> attributes, and the
<code title=dom-cva-checkValidatity><a
href="#checkvalidity0">checkValidity()</a></code> and <code
title=dom-cva-setCustomValidity><a
href="#setcustomvalidity">setCustomValidity()</a></code> methods, are part
of the <a href="#constraint0">constraint validation API</a>.

<h4 id=association><span class=secno>4.9.12 </span>Association of controls
and forms</h4>
<!-- XXX consider xreffing the 'ID' term in this section -->
Expand Down Expand Up @@ -27631,7 +27705,9 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href="#htmlelem
attributes on the buttons, when omitted, default to the values given on
the corresponding the <code><a href="#form">form</a></code> element.

<h4 id=constraint><span class=secno>4.9.15 </span>Constraint validation</h4>
<h4 id=constraints><span class=secno>4.9.15 </span>Constraints</h4>

<h5 id=definitions><span class=secno>4.9.15.1. </span>Definitions</h5>

<p>An element is a <dfn id=candidate>candidate for constraint
validation</dfn> if the following conditions apply for that element:
Expand All @@ -27643,7 +27719,7 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href="#htmlelem
<p class=big-issue>An element <dfn id=satisfies
title=concept-fv-valid>satisfies its constraints</dfn> if ...

<hr>
<h5 id=constraint><span class=secno>4.9.15.2. </span>Constraint validation</h5>

<p>When the user agent is required to <dfn id=statically>statically
validate the constraints</dfn> of <code><a href="#form">form</a></code>
Expand Down Expand Up @@ -27745,6 +27821,19 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href="#htmlelem
<p>Return a <i>negative</i> result.
</ol>

<h5 id=the-constraint><span class=secno>4.9.15.3. </span>The <dfn
id=constraint0>constraint validation API</dfn></h5>

<p class=big-issue><dfn id=willvalidate
title=dom-cva-willValidate><code>willValidate</code></dfn> <dfn
id=validity title=dom-cva-validity><code>validity</code></dfn> <dfn
id=validationmessage
title=dom-cva-validationMessage><code>validationMessage</code></dfn> <dfn
id=checkvalidity0
title=dom-cva-checkValidatity><code>checkValidity()</code></dfn> <dfn
id=setcustomvalidity
title=dom-cva-setCustomValidity><code>setCustomValidity()</code></dfn>

<h4 id=form-submission><span class=secno>4.9.16 </span>Form submission</h4>
<!-- XXX http://lxr.mozilla.org/mozilla/source/content/html/content/src/nsHTMLFormElement.cpp -->

Expand Down

0 comments on commit f6b8aa2

Please sign in to comment.