Skip to content

Commit

Permalink
[giow] (2) Make sure reset() can't fire a popup
Browse files Browse the repository at this point in the history
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=25504
Affected topics: HTML

git-svn-id: http://svn.whatwg.org/webapps@8718 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 26, 2014
1 parent 25118d6 commit 5feba6a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions complete.html
Expand Up @@ -42631,6 +42631,9 @@ <h4 id=resetting-a-form>4.10.23 Resetting a form</h4>
<p>When a <code id=resetting-a-form:the-form-element><a href=#the-form-element>form</a></code> element <var>form</var> is <dfn id=concept-form-reset>reset</dfn>, the user agent must <a href=#fire-a-simple-event id=resetting-a-form:fire-a-simple-event>fire a simple event</a> named
<code id=resetting-a-form:event-reset><a href=#event-reset>reset</a></code>, that bubbles and is cancelable, at <var>form</var>, and then, if that event is not canceled, must invoke the <a href=#concept-form-reset-control id=resetting-a-form:concept-form-reset-control>reset algorithm</a> of each <a href=#category-reset id=resetting-a-form:category-reset>resettable element</a> whose <a href=#form-owner id=resetting-a-form:form-owner>form owner</a> is <var>form</var>.</p>

<p>When the <a href=#concept-form-reset id=resetting-a-form:concept-form-reset>reset</a> algorithm is invoked by the <code id=resetting-a-form:dom-form-reset><a href=#dom-form-reset>reset()</a></code> method, the <code id=resetting-a-form:event-reset-2><a href=#event-reset>reset</a></code> event
fired by the <a href=#concept-form-reset id=resetting-a-form:concept-form-reset-2>reset</a> algorithm must not be <a href=#concept-events-trusted id=resetting-a-form:concept-events-trusted>trusted</a>.</p>

<p>Each <a href=#category-reset id=resetting-a-form:category-reset-2>resettable element</a> defines its own <dfn id=concept-form-reset-control>reset algorithm</dfn>. Changes made to form controls as part of
these algorithms do not count as changes caused by the user (and thus, e.g., do not cause <code id=resetting-a-form:event-input><a href=#event-input>input</a></code> events to fire).</p>

Expand Down
3 changes: 3 additions & 0 deletions index
Expand Up @@ -42631,6 +42631,9 @@ fur
<p>When a <code id=resetting-a-form:the-form-element><a href=#the-form-element>form</a></code> element <var>form</var> is <dfn id=concept-form-reset>reset</dfn>, the user agent must <a href=#fire-a-simple-event id=resetting-a-form:fire-a-simple-event>fire a simple event</a> named
<code id=resetting-a-form:event-reset><a href=#event-reset>reset</a></code>, that bubbles and is cancelable, at <var>form</var>, and then, if that event is not canceled, must invoke the <a href=#concept-form-reset-control id=resetting-a-form:concept-form-reset-control>reset algorithm</a> of each <a href=#category-reset id=resetting-a-form:category-reset>resettable element</a> whose <a href=#form-owner id=resetting-a-form:form-owner>form owner</a> is <var>form</var>.</p>

<p>When the <a href=#concept-form-reset id=resetting-a-form:concept-form-reset>reset</a> algorithm is invoked by the <code id=resetting-a-form:dom-form-reset><a href=#dom-form-reset>reset()</a></code> method, the <code id=resetting-a-form:event-reset-2><a href=#event-reset>reset</a></code> event
fired by the <a href=#concept-form-reset id=resetting-a-form:concept-form-reset-2>reset</a> algorithm must not be <a href=#concept-events-trusted id=resetting-a-form:concept-events-trusted>trusted</a>.</p>

<p>Each <a href=#category-reset id=resetting-a-form:category-reset-2>resettable element</a> defines its own <dfn id=concept-form-reset-control>reset algorithm</dfn>. Changes made to form controls as part of
these algorithms do not count as changes caused by the user (and thus, e.g., do not cause <code id=resetting-a-form:event-input><a href=#event-input>input</a></code> events to fire).</p>

Expand Down
5 changes: 5 additions & 0 deletions source
Expand Up @@ -55251,6 +55251,11 @@ fur
data-x="concept-form-reset-control">reset algorithm</span> of each <span
data-x="category-reset">resettable element</span> whose <span>form owner</span> is <var>form</var>.</p>

<p>When the <span data-x="concept-form-reset">reset</span> algorithm is invoked by the <code
data-x="dom-form-reset">reset()</code> method, the <code data-x="event-reset">reset</code> event
fired by the <span data-x="concept-form-reset">reset</span> algorithm must not be <span
data-x="concept-events-trusted">trusted</span>.</p>

<p>Each <span data-x="category-reset">resettable element</span> defines its own <dfn
data-x="concept-form-reset-control">reset algorithm</dfn>. Changes made to form controls as part of
these algorithms do not count as changes caused by the user (and thus, e.g., do not cause <code
Expand Down

0 comments on commit 5feba6a

Please sign in to comment.