- From: poot <cvsmail@w3.org>
- Date: Tue, 2 Dec 2008 19:43:31 +0900 (JST)
- To: public-html-diffs@w3.org
WF2: Fire 'input' for <textarea> too. (whatwg r2520) 4.10.4.4 Common event behaviors http://people.w3.org/mike/diffs/html5/spec/Overview.1.1691.html#common-event-behaviors change http://people.w3.org/mike/diffs/html5/spec/Overview.1.1691.html#event-input-change dirty value flag http://people.w3.org/mike/diffs/html5/spec/Overview.1.1691.html#concept-textarea-dirty mutable http://people.w3.org/mike/diffs/html5/spec/Overview.1.1691.html#concept-textarea-mutable http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.1690&r2=1.1691&f=h http://html5.org/tools/web-apps-tracker?from=2519&to=2520 =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.1690 retrieving revision 1.1691 diff -u -d -r1.1690 -r1.1691 --- Overview.html 2 Dec 2008 10:18:40 -0000 1.1690 +++ Overview.html 2 Dec 2008 10:40:49 -0000 1.1691 @@ -22039,12 +22039,13 @@ may wait for a suitable break in the user's interaction before queuing the task; for example, a user agent could wait for the user to have not hit a key for 100ms, so as to only fire the event when - the user pauses, instead of continuously for each keystroke.<p class=example>Examples of a user changing the element's <a href=#concept-fe-value title=concept-fe-value>value</a> would include the user typing + the user pauses, instead of continuously for each keystroke.</p><!-- same text is present in the <textarea> section --><p class=example>Examples of a user changing the element's <a href=#concept-fe-value title=concept-fe-value>value</a> would include the user typing into a text field, pasting a new value into the field, or undoing an edit in that field. Some user interactions do not cause changes to the value, e.g. hitting the "delete" key in an empty text field, or replacing some text in the field with text from the clipboard that - happens to be exactly the same text.<p>When the <dfn id=event-input-change title=event-input-change><code>change</code></dfn> event applies, + happens to be exactly the same text.</p><!-- XXX consider putting the above example in a section that + applies to "input" events for the <textarea> element too --><p>When the <dfn id=event-input-change title=event-input-change><code>change</code></dfn> event applies, if the element does not have an <a href=#activation-behavior>activation behavior</a> defined but uses a user interface that involves an explicit commit action, then any time the user commits a change to the element's @@ -22587,7 +22588,15 @@ <a href=#barred-from-constraint-validation>barred from constraint validation</a>.<p>A <code><a href=#the-textarea-element>textarea</a></code> element is <dfn id=concept-textarea-mutable title=concept-textarea-mutable>mutable</dfn> if it is neither <a href=#concept-fe-disabled title=concept-fe-disabled>disabled</a> nor has a <code title=attr-textarea-readonly><a href=#attr-textarea-readonly>readonly</a></code> attribute specified.<p>When a <code><a href=#the-textarea-element>textarea</a></code> is <a href=#concept-textarea-mutable title=concept-textarea-mutable>mutable</a>, its <a href=#concept-textarea-raw-value title=concept-textarea-raw-value>raw value</a> should be - editable by the user.<p>A <code><a href=#the-textarea-element>textarea</a></code> element has a <dfn id=concept-textarea-dirty title=concept-textarea-dirty>dirty value flag</dfn>, which must be + editable by the user. Any time the user causes the element's <a href=#concept-textarea-raw-value title=concept-textarea-raw-value>raw value</a> to change, the + user agent must <a href=#queue-a-task>queue a task</a> to <a href=#fire-a-simple-event>fire a simple + event</a> called <code title=event-input>input</code> at the + <code><a href=#the-textarea-element>textarea</a></code> element, then <a href=#broadcast-forminput-events>broadcast <code title=event-forminput>forminput</code> events</a> at the + <code><a href=#the-textarea-element>textarea</a></code> element's <a href=#form-owner>form owner</a>. User agents + may wait for a suitable break in the user's interaction before + queuing the task; for example, a user agent could wait for the user + to have not hit a key for 100ms, so as to only fire the event when + the user pauses, instead of continuously for each keystroke.</p><!-- same text is present in the <input> section --><p>A <code><a href=#the-textarea-element>textarea</a></code> element has a <dfn id=concept-textarea-dirty title=concept-textarea-dirty>dirty value flag</dfn>, which must be initially set to false, and must be set to true whenever the user interacts with the control in a way that changes the <a href=#concept-textarea-raw-value title=concept-textarea-raw-value>raw value</a>.<p>When the <code><a href=#the-textarea-element>textarea</a></code> element's <code><a href=#textcontent>textContent</a></code> DOM attribute changes value, if the element's <a href=#concept-textarea-dirty title=concept-textarea-dirty>dirty value flag</a> is false,
Received on Tuesday, 2 December 2008 10:44:09 UTC