Skip to content

Commit

Permalink
[giow] (3) Mostly, browsers seem to make these events bubble.
Browse files Browse the repository at this point in the history
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=19125
Affected topics: HTML

git-svn-id: http://svn.whatwg.org/webapps@7609 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Dec 30, 2012
1 parent aa411d5 commit 82d7bed
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 37 deletions.
19 changes: 8 additions & 11 deletions complete.html
Expand Up @@ -56909,12 +56909,11 @@ <h5 id=form-submission-algorithm><span class=secno>4.10.22.3 </span>Form submiss
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
<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).</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 bubbles and 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 submission).</li>

<!-- if you add any steps between the "lock" and "unlock" lines,
make sure to update the step immediately before the "lock" line -->
Expand Down Expand Up @@ -57845,11 +57844,8 @@ <h5 id=plain-text-form-data><span class=secno>4.10.22.7 </span>Plain text form d

<h4 id=resetting-a-form><span class=secno>4.10.23 </span>Resetting a form</h4>

<p>When a <code><a href=#the-form-element>form</a></code> element <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> named <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
element</a> whose <a href=#form-owner>form owner</a> is <var title="">form</var>.</p>
<p>When a <code><a href=#the-form-element>form</a></code> element <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> named
<code title=event-reset>reset</code>, that bubbles and 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 element</a> whose <a href=#form-owner>form owner</a> is <var title="">form</var>.</p>

<p>Each <a href=#category-reset title=category-reset>resettable element</a>
defines its own <dfn id=concept-form-reset-control title=concept-form-reset-control>reset
Expand Down Expand Up @@ -105425,6 +105421,7 @@ <h2 class=no-num id=references>References</h2><!--REFS-->
Yehuda Katz,
Yi-An Huang,
Yngve Nysaeter Pettersen,
Yonathan Randolph,
Yuzo Fujishima,
Zhenbin Xu,
Zoltan Herczeg,
Expand Down
19 changes: 8 additions & 11 deletions index
Expand Up @@ -56909,12 +56909,11 @@ fur
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
<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).</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 bubbles and 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 submission).</li>

<!-- if you add any steps between the "lock" and "unlock" lines,
make sure to update the step immediately before the "lock" line -->
Expand Down Expand Up @@ -57845,11 +57844,8 @@ fur

<h4 id=resetting-a-form><span class=secno>4.10.23 </span>Resetting a form</h4>

<p>When a <code><a href=#the-form-element>form</a></code> element <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> named <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
element</a> whose <a href=#form-owner>form owner</a> is <var title="">form</var>.</p>
<p>When a <code><a href=#the-form-element>form</a></code> element <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> named
<code title=event-reset>reset</code>, that bubbles and 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 element</a> whose <a href=#form-owner>form owner</a> is <var title="">form</var>.</p>

<p>Each <a href=#category-reset title=category-reset>resettable element</a>
defines its own <dfn id=concept-form-reset-control title=concept-form-reset-control>reset
Expand Down Expand Up @@ -105425,6 +105421,7 @@ if (s = prompt('What is your name?')) {
Yehuda Katz,
Yi-An Huang,
Yngve Nysaeter Pettersen,
Yonathan Randolph,
Yuzo Fujishima,
Zhenbin Xu,
Zoltan Herczeg,
Expand Down
26 changes: 11 additions & 15 deletions source
Expand Up @@ -66474,14 +66474,11 @@ fur
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
<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="">submitted from <code title="dom-form-submit">submit()</code>
method</var> flag is not set, then <span>fire a simple event</span> that bubbles and 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 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 -->
Expand Down Expand Up @@ -67671,13 +67668,11 @@ fur
<h4>Resetting a form</h4>

<p>When a <code>form</code> element <var title="">form</var> is <dfn
title="concept-form-reset">reset</dfn>, the user agent must
<span>fire a simple event</span> named <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
element</span> whose <span>form owner</span> is <var
title="concept-form-reset">reset</dfn>, the user agent must <span>fire a simple event</span> named
<code title="event-reset">reset</code>, that bubbles and 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 element</span> whose <span>form owner</span> is <var
title="">form</var>.</p>

<p>Each <span title="category-reset">resettable element</span>
Expand Down Expand Up @@ -123352,6 +123347,7 @@ if (s = prompt('What is your name?')) {
Yehuda Katz,
Yi-An Huang,
Yngve Nysaeter Pettersen,
Yonathan Randolph,
Yuzo Fujishima,
Zhenbin Xu,
Zoltan Herczeg,
Expand Down

0 comments on commit 82d7bed

Please sign in to comment.