[html5] r7753 - [giow] (2) Add an 'invalid' event sent to the _form_ when submission fails due t [...]

whatwg at whatwg.org whatwg at whatwg.org
Wed Mar 13 17:26:49 PDT 2013


Author: ianh
Date: 2013-03-13 17:26:47 -0700 (Wed, 13 Mar 2013)
New Revision: 7753

Modified:
   complete.html
   index
   source
Log:
[giow] (2) Add an 'invalid' event sent to the _form_ when submission fails due to form validation. (The normative parts of this change were accidentally put in the previous checkin, sorry.)
Affected topics: HTML

Modified: complete.html
===================================================================
--- complete.html	2013-03-14 00:11:27 UTC (rev 7752)
+++ complete.html	2013-03-14 00:26:47 UTC (rev 7753)
@@ -43449,8 +43449,13 @@
  <p><button>Submit order</button></p>
 </form></pre>
 
+  <p class=note>When a form is submitted, <code title=event-invalid>invalid</code> events are
+  fired at each form control that is invalid, and then at the <code><a href=#the-form-element>form</a></code> element itself. This
+  can be useful for displaying a summary of the problems with the form, since typically the browser
+  itself will only report one problem at a time.</p>
 
 
+
   <h5 id=enabling-client-side-automatic-filling-of-form-controls><span class=secno>4.10.1.5 </span>Enabling client-side automatic filling of form controls</h5>
 
   <p><i>This section is non-normative.</i></p>

Modified: index
===================================================================
--- index	2013-03-14 00:11:27 UTC (rev 7752)
+++ index	2013-03-14 00:26:47 UTC (rev 7753)
@@ -43449,8 +43449,13 @@
  <p><button>Submit order</button></p>
 </form></pre>
 
+  <p class=note>When a form is submitted, <code title=event-invalid>invalid</code> events are
+  fired at each form control that is invalid, and then at the <code><a href=#the-form-element>form</a></code> element itself. This
+  can be useful for displaying a summary of the problems with the form, since typically the browser
+  itself will only report one problem at a time.</p>
 
 
+
   <h5 id=enabling-client-side-automatic-filling-of-form-controls><span class=secno>4.10.1.5 </span>Enabling client-side automatic filling of form controls</h5>
 
   <p><i>This section is non-normative.</i></p>

Modified: source
===================================================================
--- source	2013-03-14 00:11:27 UTC (rev 7752)
+++ source	2013-03-14 00:26:47 UTC (rev 7753)
@@ -52348,8 +52348,13 @@
  <p><button>Submit order</button></p>
 </form></pre>
 
+  <p class="note">When a form is submitted, <code title="event-invalid">invalid</code> events are
+  fired at each form control that is invalid, and then at the <code>form</code> element itself. This
+  can be useful for displaying a summary of the problems with the form, since typically the browser
+  itself will only report one problem at a time.</p>
 
 
+
   <h5>Enabling client-side automatic filling of form controls</h5>
 
   <!--END dev-html--><p><i>This section is non-normative.</i></p><!--START dev-html-->




More information about the Commit-Watchers mailing list