hixie: Define what should happen to the text selection when a text field value is changed. (whatwg r6199)

hixie: Define what should happen to the text selection when a text field
value is changed. (whatwg r6199)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.4967&r2=1.4968&f=h
http://html5.org/tools/web-apps-tracker?from=6198&to=6199

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.4967
retrieving revision 1.4968
diff -u -d -r1.4967 -r1.4968
--- Overview.html 8 Jun 2011 22:17:44 -0000 1.4967
+++ Overview.html 9 Jun 2011 00:44:04 -0000 1.4968
@@ -318,7 +318,7 @@
 
    <h1>HTML5</h1>
    <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
-   <h2 class="no-num no-toc" id="editor-s-draft-8-june-2011">Editor's Draft 8 June 2011</h2>
+   <h2 class="no-num no-toc" id="editor-s-draft-9-june-2011">Editor's Draft 9 June 2011</h2>
    <dl><dt>Latest Published Version:</dt>
     <dd><a href="http://www.w3.org/TR/html5/">http://www.w3.org/TR/html5/</a></dd>
     <dt>Latest Editor's Draft:</dt>
@@ -464,7 +464,7 @@
   Group</a> is the W3C working group responsible for this
   specification's progress along the W3C Recommendation
   track.
-  This specification is the 8 June 2011 Editor's Draft.
+  This specification is the 9 June 2011 Editor's Draft.
   </p><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><p>Work on this specification is also done at the <a href="http://www.whatwg.org/">WHATWG</a>. The W3C HTML working group
   actively pursues convergence with the WHATWG, as required by the <a href="http://www.w3.org/2007/03/HTML-WG-charter">W3C HTML working
   group charter</a>.</p><!-- UNDER NO CIRCUMSTANCES IS THE FOLLOWING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><p>This document was produced by a group operating under the <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/">5
@@ -36058,9 +36058,12 @@
     <p>On getting, it must return the current <a href="#concept-fe-value" title="concept-fe-value">value</a> of the element. On setting,
     it must set the element's <a href="#concept-fe-value" title="concept-fe-value">value</a> to the new value, set the
     element's <a href="#concept-input-value-dirty-flag" title="concept-input-value-dirty-flag">dirty value
-    flag</a> to true, and then invoke the <a href="#value-sanitization-algorithm">value sanitization
+    flag</a> to true, invoke the <a href="#value-sanitization-algorithm">value sanitization
     algorithm</a>, if the element's <code title="attr-input-type"><a href="#attr-input-type">type</a></code> attribute's current state
-    defines one.</p>
+    defines one, and then, if the element has a text entry cursor
+    position, should move the text entry cursor position to the end of
+    the text field, unselecting any selected text and resetting the
+    selection direction to <i>none</i>.</p>
 
    </dd>
 
@@ -37443,7 +37446,10 @@
   <p>The <dfn id="dom-textarea-value" title="dom-textarea-value"><code>value</code></dfn>
   attribute must, on getting, return the element's <a href="#concept-textarea-raw-value" title="concept-textarea-raw-value">raw value</a>; on setting, it
   must set the element's <a href="#concept-textarea-raw-value" title="concept-textarea-raw-value">raw
-  value</a> to the new value.</p>
+  value</a> to the new value, and should then move the text entry
+  cursor position to the end of the text field, unselecting any
+  selected text and resetting the selection direction to
+  <i>none</i>.</p>
 
   <p>The <dfn id="dom-textarea-textlength" title="dom-textarea-textLength"><code>textLength</code></dfn> IDL
   attribute must return the <a href="#code-point-length">code-point length</a> of the

Received on Friday, 17 June 2011 09:54:08 UTC