HTML Standard Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/4037

File a bug

SVNBugCommentTime (UTC)
40377699Define when reset event fires.2009-09-29 08:40
Index: source
===================================================================
--- source	(revision 4036)
+++ source	(revision 4037)
@@ -34134,10 +34134,24 @@
   title="">scripted-submit</var> flag set.</p>
 
   <p>The <dfn title="dom-form-reset"><code>reset()</code></dfn>
-  method, when invoked, must <span
-  title="concept-form-reset">reset</span> the <code>form</code>
-  element.</p>
+  method, when invoked, must run the following steps:</p>
 
+  <ol>
+
+   <li><p>If the <code>form</code> element is marked as <i>locked for
+   reset</i>, then abort these steps.</p></li>
+
+   <li><p>Mark the <code>form</code> element as <dfn>locked for
+   reset</dfn>.</p></li>
+
+   <li><p><span title="concept-form-reset">Reset</span> the
+   <code>form</code> element.</p></li>
+
+   <li><p>Unmark the <code>form</code> element as <i>locked for
+   reset</i>.</p></li>
+
+  </ol>
+
   <p>If the <dfn
   title="dom-form-checkValidity"><code>checkValidity()</code></dfn>
   method is invoked, the user agent must <span>statically validate the
@@ -44212,11 +44226,14 @@
   <h4>Resetting a form</h4>
 
   <p>When a form <var title="">form</var> is <dfn
-  title="concept-form-reset">reset</dfn>, the user agent must invoke
-  the <span title="concept-form-reset-control">reset algorithm</span>
-  of each <span title="category-reset">resettable</span> elements
-  whose <span>form owner</span> is <var title="">form</var>, and must
-  then <span>broadcast <code
+  title="concept-form-reset">reset</dfn>, the user agent must
+  <span>fire a simple event</span> called <code
+  title="event-reset">reset</code>, that is cancelable, at <var
+  title="">form</var>, and then, if that event is not canceled, must
+  invoke the <span title="concept-form-reset-control">reset
+  algorithm</span> of each <span
+  title="category-reset">resettable</span> elements whose <span>form
+  owner</span> is <var title="">form</var>, and <span>broadcast <code
   title="event-formchange">formchange</code> events</span> from <var
   title="">form</var>.</p>
 

|