[html5] r8718 - [giow] (2) Make sure reset() can't fire a popup Fixing https://www.w3.org/Bugs/P [...]

whatwg at whatwg.org whatwg at whatwg.org
Tue Aug 26 15:21:47 PDT 2014


Author: ianh
Date: 2014-08-26 15:21:43 -0700 (Tue, 26 Aug 2014)
New Revision: 8718

Modified:
   complete.html
   index
   source
Log:
[giow] (2) Make sure reset() can't fire a popup
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=25504
Affected topics: HTML

Modified: complete.html
===================================================================
--- complete.html	2014-08-26 20:44:24 UTC (rev 8717)
+++ complete.html	2014-08-26 22:21:43 UTC (rev 8718)
@@ -42631,6 +42631,9 @@
   <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>
 

Modified: index
===================================================================
--- index	2014-08-26 20:44:24 UTC (rev 8717)
+++ index	2014-08-26 22:21:43 UTC (rev 8718)
@@ -42631,6 +42631,9 @@
   <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>
 

Modified: source
===================================================================
--- source	2014-08-26 20:44:24 UTC (rev 8717)
+++ source	2014-08-26 22:21:43 UTC (rev 8718)
@@ -55251,6 +55251,11 @@
   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



More information about the Commit-Watchers mailing list