- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Sun, 14 Sep 2008 21:56:14 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv30718
Modified Files:
Overview.html
Log Message:
WF2: form.dispatchFormInput(), form.dispatchFormChange() (whatwg r2178)
Index: Overview.html
===================================================================
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 21:56:49 UTC