spec/Overview.html 1.1351 2178 WF2: form.dispatchFormInput(), form.disp

WF2: form.dispatchFormInput(), form.dispatchFormChange() (whatwg r2178)

fieldset
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1351.html#fieldset
HTMLFormElement
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1351.html#htmlformelement
dispatch the event
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1351.html#dispatch
broadcast forminput events
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1351.html#broadcast
broadcast formchange events
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1351.html#broadcast0
checkValidity()
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1351.html#checkvalidity
4.10 Scripting
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1351.html#scripting1
4.9.2 The fieldset element
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1351.html#the-fieldset
The steps to process the field given a field name and a field value depend on the field name, as given in the following list. Field names must be compared literally, with no case folding performed.
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1351.html#processField
reset
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1351.html#reset1
dispatchFormInput()
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1351.html#dispatchforminput
reset algorithm
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1351.html#reset2
When the user agent is required to dispatch the event, then the user agent must act as follows:
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1351.html#dispatchMessage
4.9.18 Event dispatch
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1351.html#event
dispatchFormChange()
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1351.html#dispatchformchange

http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.1350&r2=1.1351&f=h
http://html5.org/tools/web-apps-tracker?from=2177&to=2178

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1350
retrieving revision 1.1351
diff -u -d -r1.1350 -r1.1351
--- Overview.html 13 Sep 2008 10:17:25 -0000 1.1350
+++ Overview.html 14 Sep 2008 21:56:12 -0000 1.1351
@@ -27,7 +27,7 @@
     for HTML and XHTML</h2>
 
    <h2 class="no-num no-toc" id=editors0><!-- "W3C Working Draft" -->
-    Editor's Draft <!--ZZZ-->13 September 2008</h2>
+    Editor's Draft <!--ZZZ-->14 September 2008</h2>
 
    <dl><!-- ZZZ: update the month/day
     <dt>This Version:</dt>
@@ -199,7 +199,7 @@
 
   <p>The W3C <a href="http://www.w3.org/html/wg/">HTML Working Group</a> is
    the W3C working group responsible for this specification's progress along
-   the W3C Recommendation track. <!--ZZZ:--> This specification is the 13
+   the W3C Recommendation track. <!--ZZZ:--> This specification is the 14
    September 2008 <!--ZZZ "Working Draft"-->Editor's Draft. <!--:ZZZ--></p>
   <!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST -->
   <!-- relationship to other work (required) -->
@@ -26639,8 +26639,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>
 
@@ -26729,7 +26729,17 @@
    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>
@@ -28289,8 +28299,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
@@ -28298,8 +28309,32 @@
 
   <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>
 
@@ -45320,7 +45355,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:

Received on Sunday, 14 September 2008 22:14:05 UTC