hixie: Define when reset event fires. (whatwg r4037)

hixie: Define when reset event fires. (whatwg r4037)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.3198&r2=1.3199&f=h
http://html5.org/tools/web-apps-tracker?from=4036&to=4037

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.3198
retrieving revision 1.3199
diff -u -d -r1.3198 -r1.3199
--- Overview.html 29 Sep 2009 08:11:35 -0000 1.3198
+++ Overview.html 29 Sep 2009 08:32:35 -0000 1.3199
@@ -27397,10 +27397,21 @@
   element from the <code><a href="#the-form-element">form</a></code> element itself, with the <var title="">scripted-submit</var> flag set.</p>
 
   <p>The <dfn id="dom-form-reset" title="dom-form-reset"><code>reset()</code></dfn>
-  method, when invoked, must <a href="#concept-form-reset" title="concept-form-reset">reset</a> the <code><a href="#the-form-element">form</a></code>
-  element.</p>
+  method, when invoked, must run the following steps:</p>
 
-  <p>If the <dfn id="dom-form-checkvalidity" title="dom-form-checkValidity"><code>checkValidity()</code></dfn>
+  <ol><li><p>If the <code><a href="#the-form-element">form</a></code> element is marked as <i><a href="#locked-for-reset">locked for
+   reset</a></i>, then abort these steps.</li>
+
+   <li><p>Mark the <code><a href="#the-form-element">form</a></code> element as <dfn id="locked-for-reset">locked for
+   reset</dfn>.</li>
+
+   <li><p><a href="#concept-form-reset" title="concept-form-reset">Reset</a> the
+   <code><a href="#the-form-element">form</a></code> element.</li>
+
+   <li><p>Unmark the <code><a href="#the-form-element">form</a></code> element as <i><a href="#locked-for-reset">locked for
+   reset</a></i>.</li>
+
+  </ol><p>If the <dfn id="dom-form-checkvalidity" title="dom-form-checkValidity"><code>checkValidity()</code></dfn>
   method is invoked, the user agent must <a href="#statically-validate-the-constraints">statically validate the
   constraints</a> of the <code><a href="#the-form-element">form</a></code> element, and return true
   if the constraint validation return a <i>positive</i> result, and
@@ -35028,11 +35039,11 @@
 
   <h4 id="resetting-a-form"><span class="secno">4.10.18 </span>Resetting a form</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
 
-  <p>When a form <var title="">form</var> is <dfn id="concept-form-reset" title="concept-form-reset">reset</dfn>, the user agent must invoke
-  the <a href="#concept-form-reset-control" title="concept-form-reset-control">reset algorithm</a>
-  of each <a href="#category-reset" title="category-reset">resettable</a> elements
-  whose <a href="#form-owner">form owner</a> is <var title="">form</var>, and must
-  then <a href="#broadcast-formchange-events">broadcast <code title="event-formchange">formchange</code> events</a> from <var title="">form</var>.</p>
+  <p>When a form <var title="">form</var> is <dfn id="concept-form-reset" title="concept-form-reset">reset</dfn>, the user agent must
+  <a href="#fire-a-simple-event">fire a simple event</a> 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 <a href="#concept-form-reset-control" title="concept-form-reset-control">reset
+  algorithm</a> of each <a href="#category-reset" title="category-reset">resettable</a> elements whose <a href="#form-owner">form
+  owner</a> is <var title="">form</var>, and <a href="#broadcast-formchange-events">broadcast <code title="event-formchange">formchange</code> events</a> from <var title="">form</var>.</p>
 
   <p>Each <a href="#category-reset" title="category-reset">resettable</a> element
   defines its own <dfn id="concept-form-reset-control" title="concept-form-reset-control">reset

Received on Tuesday, 29 September 2009 08:33:53 UTC