[html5] r6888 - [giow] (2) Make :valid and :invalid apply to <form> elements also. Affected topi [...]

whatwg at whatwg.org whatwg at whatwg.org
Tue Jan 10 16:00:46 PST 2012


Author: ianh
Date: 2012-01-10 16:00:45 -0800 (Tue, 10 Jan 2012)
New Revision: 6888

Modified:
   complete.html
   index
   source
Log:
[giow] (2) Make :valid and :invalid apply to <form> elements also.
Affected topics: HTML

Modified: complete.html
===================================================================
--- complete.html	2012-01-10 23:49:36 UTC (rev 6887)
+++ complete.html	2012-01-11 00:00:45 UTC (rev 6888)
@@ -56379,27 +56379,41 @@
    <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>

Modified: index
===================================================================
--- index	2012-01-10 23:49:36 UTC (rev 6887)
+++ index	2012-01-11 00:00:45 UTC (rev 6888)
@@ -56379,27 +56379,41 @@
    <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>

Modified: source
===================================================================
--- source	2012-01-10 23:49:36 UTC (rev 6887)
+++ source	2012-01-11 00:00:45 UTC (rev 6888)
@@ -65787,11 +65787,25 @@
    <dd>
 
     <p>The <code title="selector-valid">:valid</code> pseudo-class
-    must match all elements that are <span title="candidate for
-    constraint validation">candidates for constraint validation</span>
-    and that <span title="concept-fv-valid">satisfy their
-    constraints</span>.</p>
+    must match any element falling into one of the following
+    categories:</p>
 
+    <ul>
+
+     <li>elements that are <span title="candidate for constraint
+     validation">candidates for constraint validation</span> and that
+     <span title="concept-fv-valid">satisfy their
+     constraints</span></li>
+
+     <li><code>form</code> elements that are not the <span>form
+     owner</span> of any elements that themselves are <span
+     title="category-submit">submittable elements</span>, <span
+     title="candidate for constraint validation">candidates for
+     constraint validation</span>, and do not <span
+     title="concept-fv-valid">satisfy their constraints</span></li>
+
+    </ul>
+
    </dd>
 
 
@@ -65800,11 +65814,25 @@
    <dd>
 
     <p>The <code title="selector-invalid">:invalid</code> pseudo-class
-    must match all elements that are <span title="candidate for
-    constraint validation">candidates for constraint validation</span>
-    but that do not <span title="concept-fv-valid">satisfy their
-    constraints</span>.</p>
+    must match any element falling into one of the following
+    categories:</p>
 
+    <ul>
+
+     <li>elements that are <span title="candidate for constraint
+     validation">candidates for constraint validation</span> but that
+     do not <span title="concept-fv-valid">satisfy their
+     constraints</span></p>
+
+     <li><code>form</code> elements that are the <span>form
+     owner</span> of one or more elements that themselves are <span
+     title="category-submit">submittable elements</span>, <span
+     title="candidate for constraint validation">candidates for
+     constraint validation</span>, and do not <span
+     title="concept-fv-valid">satisfy their constraints</span></li>
+
+    </ul>
+
    </dd>
 
 




More information about the Commit-Watchers mailing list