HTML Standard Tracker

Diff (omit for latest revision)
Filter

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

File a bug

SVNBugCommentTime (UTC)
39577511[Opera] [Webkit] Make the implicit submission mechanism validate the form.2009-09-22 09:35
Index: source
===================================================================
--- source	(revision 3956)
+++ source	(revision 3957)
@@ -33914,7 +33914,8 @@
   <p>The <dfn title="dom-form-submit"><code>submit()</code></dfn>
   method, when invoked, must <span
   title="concept-form-submit">submit</span> the <code>form</code>
-  element from the <code>form</code> element itself.</p>
+  element from the <code>form</code> element itself, with the <var
+  title="">scripted-submit</var> flag set.</p>
 
   <p>The <dfn title="dom-form-reset"><code>reset()</code></dfn>
   method, when invoked, must <span
@@ -43053,7 +43054,8 @@
 
   <p>When a form <var title="">form</var> is <dfn
   title="concept-form-submit">submitted</dfn> from an element <var
-  title="">submitter</var> (typically a button), the user agent must
+  title="">submitter</var> (typically a button), optionally with a
+  <var title="">scripted-submit</var> flag set, the user agent must
   run the following steps:</p>
 
   <ol>
@@ -43075,22 +43077,22 @@
 
    <!-- lock (implicit in previous step) -->
 
-   <li><p>If the <var title="">submitter</var> is anything but a
-   <code>form</code> element, 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 negative (the constraint validation
-   concluded that there were invalid fields and probably informed the
-   user of this) then abort these steps.</p></li>
+   <li><p>If the <var title="">scripted-submit</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
+   negative (the constraint validation concluded that there were
+   invalid fields and probably informed the user of this) then abort
+   these steps.</p></li>
 
-   <li><p>If the <var title="">submitter</var> is anything but a
-   <code>form</code> element, then <span>fire a simple event</span>
-   that is cancelable called <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 submission).</p></li>
+   <li><p>If the <var title="">scripted-submit</var> flag is not set,
+   then <span>fire a simple event</span> that is cancelable called
+   <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
+   submission).</p></li>
 
    <!-- if you add any steps between the "lock" and "unlock" lines,
    make sure to update the step immediately before the "lock" line -->

|