Skip to content
Permalink
Browse files
[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

git-svn-id: http://svn.whatwg.org/webapps@7753 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Mar 14, 2013
1 parent 6197dc0 commit db0c0c05657c8ac2b6888cb6c6e9ed7c8705655f
Showing with 15 additions and 0 deletions.
  1. +5 −0 complete.html
  2. +5 −0 index
  3. +5 −0 source
@@ -43449,6 +43449,11 @@ <h5 id=client-side-form-validation><span class=secno>4.10.1.4 </span>Client-side
&lt;p&gt;&lt;button&gt;Submit order&lt;/button&gt;&lt;/p&gt;
&lt;/form&gt;</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>
5 index
@@ -43449,6 +43449,11 @@ the cell that corresponds to the values of the two dice.
&lt;p&gt;&lt;button&gt;Submit order&lt;/button&gt;&lt;/p&gt;
&lt;/form&gt;</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>
5 source
@@ -52348,6 +52348,11 @@ the cell that corresponds to the values of the two dice.
&lt;p>&lt;button>Submit order&lt;/button>&lt;/p>
&lt;/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>

0 comments on commit db0c0c0

Please sign in to comment.