[html5] r6403 - [e] (0) try to clarify how this algorithm works when called standalone Fixing ht [...]
whatwg at whatwg.org
whatwg at whatwg.org
Tue Aug 9 18:18:35 PDT 2011
Author: ianh
Date: 2011-08-09 18:18:34 -0700 (Tue, 09 Aug 2011)
New Revision: 6403
Modified:
complete.html
index
source
Log:
[e] (0) try to clarify how this algorithm works when called standalone
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=13127
Modified: complete.html
===================================================================
--- complete.html 2011-08-10 01:05:59 UTC (rev 6402)
+++ complete.html 2011-08-10 01:18:34 UTC (rev 6403)
@@ -51630,8 +51630,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>
@@ -51653,15 +51653,15 @@
<!-- lock (implicit in previous step) -->
- <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
@@ -51673,7 +51673,7 @@
<!-- unlock -->
<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>
@@ -51947,7 +51947,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
Modified: index
===================================================================
--- index 2011-08-10 01:05:59 UTC (rev 6402)
+++ index 2011-08-10 01:18:34 UTC (rev 6403)
@@ -51497,8 +51497,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>
@@ -51520,15 +51520,15 @@
<!-- lock (implicit in previous step) -->
- <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
@@ -51540,7 +51540,7 @@
<!-- unlock -->
<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>
@@ -51814,7 +51814,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
Modified: source
===================================================================
--- source 2011-08-10 01:05:59 UTC (rev 6402)
+++ source 2011-08-10 01:18:34 UTC (rev 6403)
@@ -57994,8 +57994,9 @@
<p>When a <code>form</code> element <var title="">form</var> is <dfn
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">submit()</code> method</var> flag set, the user agent must
- run the following steps:</p>
+ <var title="">submitted from <code
+ title="dom-form-submit">submit()</code> method</var> flag set, the
+ user agent must run the following steps:</p>
<ol>
@@ -58023,8 +58024,9 @@
<!-- lock (implicit in previous step) -->
- <li><p>If the <var title="">submitted from <code title="dom-form-submit">submit()</code> method</var> flag is not set,
- and the <var title="">submitter</var> element's <span
+ <li><p>If the <var title="">submitted from <code
+ title="dom-form-submit">submit()</code> method</var> flag is not
+ set, and the <var title="">submitter</var> element's <span
title="concept-fs-novalidate">no-validate state</span> is false,
then <span>interactively validate the constraints</span> of <var
title="">form</var> and examine the result: if the result is
@@ -58032,8 +58034,9 @@
invalid fields and probably informed the user of this) then abort
these steps.</p></li>
- <li><p>If the <var title="">submitted from <code title="dom-form-submit">submit()</code> method</var> flag is not set,
- then <span>fire a simple event</span> that is cancelable named
+ <li><p>If the <var title="">submitted from <code
+ title="dom-form-submit">submit()</code> method</var> flag is not
+ set, then <span>fire a simple event</span> 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,
@@ -58047,7 +58050,8 @@
<li><p>Let <var title="">form data set</var> be the result of
<span>constructing the form data set</span> for <var
- title="">form</var>.</p></li>
+ title="">form</var> in the context of <var
+ title="">submitter</var>.</p></li>
<li><p>Let <var title="">action</var> be the <var
title="">submitter</var> element's <span
@@ -58392,7 +58396,9 @@
<p>The algorithm to <dfn title="constructing the form data
set">construct the form data set</dfn> for a form <var
- title="">form</var> is as follows:</p>
+ 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>
More information about the Commit-Watchers
mailing list