Skip to content

Commit

Permalink
[giow] (0) Define what should happen to the text selection when a tex…
Browse files Browse the repository at this point in the history
…t field value is changed.

git-svn-id: http://svn.whatwg.org/webapps@6199 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jun 9, 2011
1 parent effb728 commit 5be4801
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 11 deletions.
14 changes: 10 additions & 4 deletions complete.html
Expand Up @@ -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 &mdash; Last Updated 8 June 2011</h2>
<h2 class="no-num no-toc">Living Standard &mdash; 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>
Expand Down Expand Up @@ -47688,9 +47688,12 @@ <h5 id=common-input-element-apis><span class=secno>4.10.7.3 </span>Common <code>
<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>

Expand Down Expand Up @@ -49266,7 +49269,10 @@ <h4 id=the-textarea-element><span class=secno>4.10.13 </span>The <dfn><code>text
<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
Expand Down
14 changes: 10 additions & 4 deletions index
Expand Up @@ -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 &mdash; Last Updated 8 June 2011</h2>
<h2 class="no-num no-toc">Living Standard &mdash; 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>
Expand Down Expand Up @@ -47675,9 +47675,12 @@ You cannot submit this form when the field is incorrect.</samp></pre>
<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>

Expand Down Expand Up @@ -49253,7 +49256,10 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href=#htmleleme
<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
Expand Down
12 changes: 9 additions & 3 deletions source
Expand Up @@ -53506,10 +53506,13 @@ You cannot submit this form when the field is incorrect.</samp></pre>
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>

Expand Down Expand Up @@ -55449,7 +55452,10 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
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
Expand Down

0 comments on commit 5be4801

Please sign in to comment.