- From: poot <cvsmail@w3.org>
- Date: Tue, 09 Aug 2011 21:18:51 -0400
- To: public-html-diffs@w3.org
hixie: try to clarify how this algorithm works when called standalone (whatwg r6403) http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.5108&r2=1.5109&f=h http://html5.org/tools/web-apps-tracker?from=6402&to=6403 =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.5108 retrieving revision 1.5109 diff -u -d -r1.5108 -r1.5109 --- Overview.html 10 Aug 2011 01:06:07 -0000 1.5108 +++ Overview.html 10 Aug 2011 01:18:41 -0000 1.5109 @@ -39313,8 +39313,8 @@ <h5 id="form-submission-algorithm"><span class="secno">4.10.22.3 </span>Form submission algorithm</h5> <p>When a <code><a href="#the-form-element">form</a></code> element <var title="">form</var> is <dfn id="concept-form-submit" title="concept-form-submit">submitted</dfn> from an element <var title="">submitter</var> (typically a button), optionally with a - <var title="">submitted from <code title="dom-form-submit"><a href="#dom-form-submit">submit()</a></code> method</var> flag set, the user agent must - run the following steps:</p> + <var title="">submitted from <code title="dom-form-submit"><a href="#dom-form-submit">submit()</a></code> method</var> flag set, the + user agent must run the following steps:</p> <ol><li><p>Let <var title="">form document</var> be the <var title="">form</var>'s <code><a href="#document">Document</a></code>.</li> @@ -39336,15 +39336,15 @@ - <li><p>If the <var title="">submitted from <code title="dom-form-submit"><a href="#dom-form-submit">submit()</a></code> method</var> flag is not set, - and the <var title="">submitter</var> element's <a href="#concept-fs-novalidate" title="concept-fs-novalidate">no-validate state</a> is false, + <li><p>If the <var title="">submitted from <code title="dom-form-submit"><a href="#dom-form-submit">submit()</a></code> method</var> flag is not + set, and the <var title="">submitter</var> element's <a href="#concept-fs-novalidate" title="concept-fs-novalidate">no-validate state</a> is false, then <a href="#interactively-validate-the-constraints">interactively validate the constraints</a> of <var title="">form</var> and examine the result: if the result is negative (the constraint validation concluded that there were invalid fields and probably informed the user of this) then abort these steps.</li> - <li><p>If the <var title="">submitted from <code title="dom-form-submit"><a href="#dom-form-submit">submit()</a></code> method</var> flag is not set, - then <a href="#fire-a-simple-event">fire a simple event</a> that is cancelable named + <li><p>If the <var title="">submitted from <code title="dom-form-submit"><a href="#dom-form-submit">submit()</a></code> method</var> flag is not + set, then <a href="#fire-a-simple-event">fire a simple event</a> that is cancelable named <code title="event-submit">submit</code>, at <var title="">form</var>. If the event's default action is prevented (i.e. if the event is canceled) then abort these steps. Otherwise, continue (effectively the default action is to perform the @@ -39354,7 +39354,7 @@ <li><p>Let <var title="">form data set</var> be the result of - <a href="#constructing-the-form-data-set">constructing the form data set</a> for <var title="">form</var>.</li> + <a href="#constructing-the-form-data-set">constructing the form data set</a> for <var title="">form</var> in the context of <var title="">submitter</var>.</li> <li><p>Let <var title="">action</var> be the <var title="">submitter</var> element's <a href="#concept-fs-action" title="concept-fs-action">action</a>.</li> @@ -39614,7 +39614,8 @@ </ol><h5 id="constructing-form-data-set"><span class="secno">4.10.22.4 </span>Constructing the form data set</h5> <p>The algorithm to <dfn id="constructing-the-form-data-set" title="constructing the form data - set">construct the form data set</dfn> for a form <var title="">form</var> is as follows:</p> + set">construct the form data set</dfn> for a form <var title="">form</var> optionally in the context of a submitter <var title="">submitter</var> is as follows. If not specified otherwise, + <var title="">submitter</var> is null.</p> <ol><li><p>Let <var title="">controls</var> be a list of all the <a href="#category-submit" title="category-submit">submittable elements</a> whose <a href="#form-owner">form owner</a> is <var title="">form</var>, in <a href="#tree-order">tree
Received on Wednesday, 10 August 2011 01:18:52 UTC