[html5] r2178 - [] (0) WF2: form.dispatchFormInput(), form.dispatchFormChange()

whatwg at whatwg.org whatwg at whatwg.org
Sun Sep 14 14:56:03 PDT 2008


Author: ianh
Date: 2008-09-14 14:56:02 -0700 (Sun, 14 Sep 2008)
New Revision: 2178

Modified:
   index
   source
Log:
[] (0) WF2: form.dispatchFormInput(), form.dispatchFormChange()

Modified: index
===================================================================
--- index	2008-09-13 10:17:21 UTC (rev 2177)
+++ index	2008-09-14 21:56:02 UTC (rev 2178)
@@ -29,7 +29,7 @@
 
    <h1 id=html-5>HTML 5</h1>
 
-   <h2 class="no-num no-toc" id=draft>Draft Recommendation — 13
+   <h2 class="no-num no-toc" id=draft>Draft Recommendation — 14
     September 2008</h2>
 
    <p>You can take part in this work. <a
@@ -26632,8 +26632,8 @@
   void <a href="#reset" title=dom-form-reset>reset</a>();
   boolean <a href="#checkvalidity" title=dom-form-checkValidity>checkValidity</a>();
 
-  void <span title=dom-form-dispatchFormInput>dispatchFormInput</span>();
-  void <span title=dom-form-dispatchFormChange>dispatchFormChange</span>();
+  void <a href="#dispatchforminput" title=dom-form-dispatchFormInput>dispatchFormInput</a>();
+  void <a href="#dispatchformchange" title=dom-form-dispatchFormChange>dispatchFormChange</a>();
 };</pre>
   </dl>
 
@@ -26722,8 +26722,18 @@
    return true if the constraint validation return a <i>positive</i> result,
    and false if it returned a <i>negative</i> result.
 
-  <p class=big-issue>...
+  <p>If the <dfn id=dispatchforminput
+   title=dom-form-dispatchFormInput><code>dispatchFormInput()</code></dfn>
+   method is invoked, the user agent must <a href="#broadcast">broadcast
+   <code title=event-forminput>forminput</code> events</a> from the <code><a
+   href="#form">form</a></code> element.
 
+  <p>If the <dfn id=dispatchformchange
+   title=dom-form-dispatchFormChange><code>dispatchFormChange()</code></dfn>
+   method is invoked, the user agent must <a href="#broadcast0">broadcast
+   <code title=event-formchange>formchange</code> events</a> from the
+   <code><a href="#form">form</a></code> element.
+
   <h4 id=the-fieldset><span class=secno>4.9.2 </span>The <dfn
    id=fieldset><code>fieldset</code></dfn> element</h4>
 
@@ -28282,8 +28292,9 @@
    href="#reset2" title=concept-form-reset-control>reset algorithm</a> of
    each <a href="#resettable" title=category-reset>resettable</a> elements
    whose <a href="#form-owner">form owner</a> is <var title="">form</var>,
-   and must then <a href="#dispatch">dispatch a <code
-   title=event-formchange>formchange</code> event</a>.
+   and must then <a href="#broadcast0">broadcast <code
+   title=event-formchange>formchange</code> events</a> from <var
+   title="">form</var>.
 
   <p>Each <a href="#resettable" title=category-reset>resettable</a> element
    defines its own <dfn id=reset2 title=concept-form-reset-control>reset
@@ -28291,9 +28302,33 @@
 
   <h4 id=event><span class=secno>4.9.18 </span>Event dispatch</h4>
 
-  <p class=big-issue>When the user agent is to <dfn id=dispatch>dispatch a
-   <code title=event-formchange>formchange</code> event</dfn>, ...
+  <p>When the user agent is to <dfn id=broadcast>broadcast <code
+   title=event-forminput>forminput</code> events</dfn> or <dfn
+   id=broadcast0>broadcast <code title=event-formchange>formchange</code>
+   events</dfn> from a <code><a href="#form">form</a></code> element <var
+   title="">form</var>, it must run the following steps:
 
+  <ol>
+   <li>
+    <p>Let <var title="">controls</var> be a list of all the <a
+     href="#resettable" title=category-reset>resettable</a> elements whose <a
+     href="#form-owner">form owner</a> is <var title="">form</var>.
+
+   <li>If the user agent was to <a href="#broadcast">broadcast <code
+    title=event-forminput>forminput</code> events</a>, let <var
+    title="">event name</var> be <code
+    title=event-forminput>forminput</code>. Otherwise the user agent was to
+    <a href="#broadcast0">broadcast <code
+    title=event-formchange>formchange</code> events</a>; let <var
+    title="">event name</var> be <code
+    title=event-formchange>formchange</code>.
+
+   <li>
+    <p>For each element in <var title="">controls</var>, in <a
+     href="#tree-order">tree order</a>, <a href="#firing2">fire a simple
+     event</a> named <var title="">event name</var> at the element.
+  </ol>
+
   <h3 id=scripting1><span class=secno>4.10 </span>Scripting</h3>
 
   <p>Scripts allow authors to add interactivity to their documents.
@@ -45313,7 +45348,7 @@
     <p>The field is ignored.
   </dl>
 
-  <p id=dispatchMessage>When the user agent is required to <dfn id=dispatch0
+  <p id=dispatchMessage>When the user agent is required to <dfn id=dispatch
    title="">dispatch the event</dfn>, then the user agent must act as
    follows:
 

Modified: source
===================================================================
--- source	2008-09-13 10:17:21 UTC (rev 2177)
+++ source	2008-09-14 21:56:02 UTC (rev 2178)
@@ -24065,9 +24065,19 @@
   if the constraint validation return a <i>positive</i> result, and
   false if it returned a <i>negative</i> result.</p>
 
-  <p class="big-issue">...</p>
+  <p>If the <dfn
+  title="dom-form-dispatchFormInput"><code>dispatchFormInput()</code></dfn>
+  method is invoked, the user agent must <span>broadcast <code
+  title="event-forminput">forminput</code> events</span> from the
+  <code>form</code> element.</p>
 
+  <p>If the <dfn
+  title="dom-form-dispatchFormChange"><code>dispatchFormChange()</code></dfn>
+  method is invoked, the user agent must <span>broadcast <code
+  title="event-formchange">formchange</code> events</span> from the
+  <code>form</code> element.</p>
 
+
   <h4>The <dfn><code>fieldset</code></dfn> element</h4>
 
   <dl class="element">
@@ -25422,8 +25432,9 @@
   the <span title="concept-form-reset-control">reset algorithm</span>
   of each <span title="category-reset">resettable</span> elements
   whose <span>form owner</span> is <var title="">form</var>, and must
-  then <span>dispatch a <code
-  title="event-formchange">formchange</code> event</span>.</p>
+  then <span>broadcast <code
+  title="event-formchange">formchange</code> events</span> from <var
+  title="">form</var>.</p>
 
   <p>Each <span title="category-reset">resettable</span> element
   defines its own <dfn title="concept-form-reset-control">reset
@@ -25433,11 +25444,35 @@
 
   <h4>Event dispatch</h4>
 
-  <p class="big-issue">When the user agent is to <dfn>dispatch a <code
-  title="event-formchange">formchange</code> event</dfn>, ...</p>
+  <p>When the user agent is to <dfn>broadcast <code
+  title="event-forminput">forminput</code> events</dfn> or
+  <dfn>broadcast <code title="event-formchange">formchange</code>
+  events</dfn> from a <code>form</code> element <var
+  title="">form</var>, it must run the following steps:</p>
 
+  <ol>
 
+   <li><p>Let <var title="">controls</var> be a list of all the <span
+   title="category-reset">resettable</span> elements whose <span>form
+   owner</span> is <var title="">form</var>.</p></li>
 
+   <li>If the user agent was to <span>broadcast <code
+   title="event-forminput">forminput</code> events</span>, let <var
+   title="">event name</var> be <code
+   title="event-forminput">forminput</code>. Otherwise the user agent
+   was to <span>broadcast <code
+   title="event-formchange">formchange</code> events</span>; let <var
+   title="">event name</var> be <code
+   title="event-formchange">formchange</code>.</li>
+
+   <li><p>For each element in <var title="">controls</var>, in
+   <span>tree order</span>, <span>fire a simple event</span> named
+   <var title="">event name</var> at the element.</p></li>
+
+  </ol>
+
+
+
   <h3>Scripting</h3>
 
   <p>Scripts allow authors to add interactivity to their documents.</p>




More information about the Commit-Watchers mailing list