Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[giow] (2) Make :valid and :invalid apply to <form> elements also.
Affected topics: HTML git-svn-id: http://svn.whatwg.org/webapps@6888 340c8d12-0b0e-0410-8428-c7bf67bfef74
- Loading branch information
Showing
with
84 additions
and 28 deletions.
- +24 −10 complete.html
- +24 −10 index
- +36 −8 source
<dd> | ||
|
||
<p>The <code title=selector-valid><a href=#selector-valid>:valid</a></code> pseudo-class | ||
must match all elements that are <a href=#candidate-for-constraint-validation title="candidate for | ||
constraint validation">candidates for constraint validation</a> | ||
and that <a href=#concept-fv-valid title=concept-fv-valid>satisfy their | ||
constraints</a>.</p> | ||
must match any element falling into one of the following | ||
categories:</p> | ||
|
||
</dd> | ||
<ul><li>elements that are <a href=#candidate-for-constraint-validation title="candidate for constraint | ||
validation">candidates for constraint validation</a> and that | ||
<a href=#concept-fv-valid title=concept-fv-valid>satisfy their | ||
constraints</a></li> | ||
|
||
<li><code><a href=#the-form-element>form</a></code> elements that are not the <a href=#form-owner>form | ||
owner</a> of any elements that themselves are <a href=#category-submit title=category-submit>submittable elements</a>, <a href=#candidate-for-constraint-validation title="candidate for constraint validation">candidates for | ||
constraint validation</a>, and do not <a href=#concept-fv-valid title=concept-fv-valid>satisfy their constraints</a></li> | ||
|
||
</ul></dd> | ||
|
||
|
||
<dt><dfn id=selector-invalid title=selector-invalid><code>:invalid</code></dfn></dt> | ||
|
||
<dd> | ||
|
||
<p>The <code title=selector-invalid><a href=#selector-invalid>:invalid</a></code> pseudo-class | ||
must match all elements that are <a href=#candidate-for-constraint-validation title="candidate for | ||
constraint validation">candidates for constraint validation</a> | ||
but that do not <a href=#concept-fv-valid title=concept-fv-valid>satisfy their | ||
constraints</a>.</p> | ||
must match any element falling into one of the following | ||
categories:</p> | ||
|
||
</dd> | ||
<ul><li>elements that are <a href=#candidate-for-constraint-validation title="candidate for constraint | ||
validation">candidates for constraint validation</a> but that | ||
do not <a href=#concept-fv-valid title=concept-fv-valid>satisfy their | ||
constraints</a> | ||
|
||
<li><code><a href=#the-form-element>form</a></code> elements that are the <a href=#form-owner>form | ||
owner</a> of one or more elements that themselves are <a href=#category-submit title=category-submit>submittable elements</a>, <a href=#candidate-for-constraint-validation title="candidate for constraint validation">candidates for | ||
constraint validation</a>, and do not <a href=#concept-fv-valid title=concept-fv-valid>satisfy their constraints</a></li> | ||
|
||
</ul></dd> | ||
|
||
|
||
<dt><dfn id=selector-in-range title=selector-in-range><code>:in-range</code></dfn></dt> |
<dd> | ||
|
||
<p>The <code title=selector-valid><a href=#selector-valid>:valid</a></code> pseudo-class | ||
must match all elements that are <a href=#candidate-for-constraint-validation title="candidate for | ||
constraint validation">candidates for constraint validation</a> | ||
and that <a href=#concept-fv-valid title=concept-fv-valid>satisfy their | ||
constraints</a>.</p> | ||
must match any element falling into one of the following | ||
categories:</p> | ||
|
||
</dd> | ||
<ul><li>elements that are <a href=#candidate-for-constraint-validation title="candidate for constraint | ||
validation">candidates for constraint validation</a> and that | ||
<a href=#concept-fv-valid title=concept-fv-valid>satisfy their | ||
constraints</a></li> | ||
|
||
<li><code><a href=#the-form-element>form</a></code> elements that are not the <a href=#form-owner>form | ||
owner</a> of any elements that themselves are <a href=#category-submit title=category-submit>submittable elements</a>, <a href=#candidate-for-constraint-validation title="candidate for constraint validation">candidates for | ||
constraint validation</a>, and do not <a href=#concept-fv-valid title=concept-fv-valid>satisfy their constraints</a></li> | ||
|
||
</ul></dd> | ||
|
||
|
||
<dt><dfn id=selector-invalid title=selector-invalid><code>:invalid</code></dfn></dt> | ||
|
||
<dd> | ||
|
||
<p>The <code title=selector-invalid><a href=#selector-invalid>:invalid</a></code> pseudo-class | ||
must match all elements that are <a href=#candidate-for-constraint-validation title="candidate for | ||
constraint validation">candidates for constraint validation</a> | ||
but that do not <a href=#concept-fv-valid title=concept-fv-valid>satisfy their | ||
constraints</a>.</p> | ||
must match any element falling into one of the following | ||
categories:</p> | ||
|
||
</dd> | ||
<ul><li>elements that are <a href=#candidate-for-constraint-validation title="candidate for constraint | ||
validation">candidates for constraint validation</a> but that | ||
do not <a href=#concept-fv-valid title=concept-fv-valid>satisfy their | ||
constraints</a> | ||
|
||
<li><code><a href=#the-form-element>form</a></code> elements that are the <a href=#form-owner>form | ||
owner</a> of one or more elements that themselves are <a href=#category-submit title=category-submit>submittable elements</a>, <a href=#candidate-for-constraint-validation title="candidate for constraint validation">candidates for | ||
constraint validation</a>, and do not <a href=#concept-fv-valid title=concept-fv-valid>satisfy their constraints</a></li> | ||
|
||
</ul></dd> | ||
|
||
|
||
<dt><dfn id=selector-in-range title=selector-in-range><code>:in-range</code></dfn></dt> |