[html5] r6199 - [giow] (0) Define what should happen to the text selection when a text field val [...]
whatwg at whatwg.org
whatwg at whatwg.org
Wed Jun 8 17:44:00 PDT 2011
Author: ianh
Date: 2011-06-08 17:43:58 -0700 (Wed, 08 Jun 2011)
New Revision: 6199
Modified:
complete.html
index
source
Log:
[giow] (0) Define what should happen to the text selection when a text field value is changed.
Modified: complete.html
===================================================================
--- complete.html 2011-06-08 22:17:38 UTC (rev 6198)
+++ complete.html 2011-06-09 00:43:58 UTC (rev 6199)
@@ -239,7 +239,7 @@
<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1>Web Applications 1.0</h1>
- <h2 class="no-num no-toc">Living Standard — Last Updated 8 June 2011</h2>
+ <h2 class="no-num no-toc">Living Standard — Last Updated 9 June 2011</h2>
</hgroup><dl><dt>Multiple-page version:</dt>
<dd><a href=http://www.whatwg.org/specs/web-apps/current-work/complete/>http://www.whatwg.org/specs/web-apps/current-work/complete/</a></dd>
<dt>One-page version:</dt>
@@ -47688,9 +47688,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>
@@ -49266,7 +49269,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
Modified: index
===================================================================
--- index 2011-06-08 22:17:38 UTC (rev 6198)
+++ index 2011-06-09 00:43:58 UTC (rev 6199)
@@ -243,7 +243,7 @@
<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
- <h2 class="no-num no-toc">Living Standard — Last Updated 8 June 2011</h2>
+ <h2 class="no-num no-toc">Living Standard — Last Updated 9 June 2011</h2>
</hgroup><dl><dt><strong>Web developer edition</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
@@ -47675,9 +47675,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>
@@ -49253,7 +49256,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
Modified: source
===================================================================
--- source 2011-06-08 22:17:38 UTC (rev 6198)
+++ source 2011-06-09 00:43:58 UTC (rev 6199)
@@ -53506,10 +53506,13 @@
it must set the element's <span
title="concept-fe-value">value</span> to the new value, set the
element's <span title="concept-input-value-dirty-flag">dirty value
- flag</span> to true, and then invoke the <span>value sanitization
+ flag</span> to true, invoke the <span>value sanitization
algorithm</span>, if the element's <code
title="attr-input-type">type</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>
@@ -55449,7 +55452,10 @@
attribute must, on getting, return the element's <span
title="concept-textarea-raw-value">raw value</span>; on setting, it
must set the element's <span title="concept-textarea-raw-value">raw
- value</span> to the new value.</p>
+ value</span> 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
title="dom-textarea-textLength"><code>textLength</code></dfn> IDL
More information about the Commit-Watchers
mailing list