Skip to content
Permalink
Browse files

[giow] (2) Spec the 'select' event.

Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=12132

git-svn-id: http://svn.whatwg.org/webapps@6070 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed May 4, 2011
1 parent 6e3b78b commit 7ccc3c5f08681964a12042143087c0ea4d3b424a
Showing with 41 additions and 6 deletions.
  1. +13 −2 complete.html
  2. +13 −2 index
  3. +15 −2 source
elements, these methods and attributes must operate on the element's
<a href=#concept-textarea-raw-value title=concept-textarea-raw-value>raw value</a>.</p>

<p>Where possible, user interface features for changing the text
selection in <code><a href=#the-input-element>input</a></code> and <code><a href=#the-textarea-element>textarea</a></code> elements
must be implemented in terms of the DOM API described in this
section, so that, e.g., all the same events fire.</p>


<p>The selections of <code><a href=#the-input-element>input</a></code> and <code><a href=#the-textarea-element>textarea</a></code>
elements have a <i>direction</i>, which is either <i>forward</i>,
<i>backward</i>, or <i>none</i>. This direction is set when the user
must cause the contents of the text field to be fully selected, with
the selection direction being none, if the platform support
selections with the direction <i>none</i>, or otherwise
<i>forward</i>.</p>
<i>forward</i>. The user agent must then <a href=#queue-a-task>queue a task</a>
to <a href=#fire-a-simple-event>fire a simple event</a> that bubbles named <code title=event-select>select</code> at the element, using the
<a href=#user-interaction-task-source>user interaction task source</a> as the task source.</p>


<p>The <dfn id=dom-textarea/input-selectionstart title=dom-textarea/input-selectionStart><code>selectionStart</code></dfn>
<a href=#case-sensitive>case-sensitive</a> match for the string "<code title="">backward</code>", <i>forward</i> if <var title="">direction</var> is a <a href=#case-sensitive>case-sensitive</a> match for
the string "<code title="">forward</code>" or if the platform does
not support selections with the direction <i>none</i>, and
<i>none</i> otherwise (including if the argument is omitted).</p>
<i>none</i> otherwise (including if the argument is omitted). The
user agent must then <a href=#queue-a-task>queue a task</a> to <a href=#fire-a-simple-event>fire a
simple event</a> that bubbles named <code title=event-select>select</code> at the element, using the
<a href=#user-interaction-task-source>user interaction task source</a> as the task source.</p>


<p>All elements to which this API applies have either a selection or
15 index
elements, these methods and attributes must operate on the element's
<a href=#concept-textarea-raw-value title=concept-textarea-raw-value>raw value</a>.</p>

<p>Where possible, user interface features for changing the text
selection in <code><a href=#the-input-element>input</a></code> and <code><a href=#the-textarea-element>textarea</a></code> elements
must be implemented in terms of the DOM API described in this
section, so that, e.g., all the same events fire.</p>


<p>The selections of <code><a href=#the-input-element>input</a></code> and <code><a href=#the-textarea-element>textarea</a></code>
elements have a <i>direction</i>, which is either <i>forward</i>,
<i>backward</i>, or <i>none</i>. This direction is set when the user
must cause the contents of the text field to be fully selected, with
the selection direction being none, if the platform support
selections with the direction <i>none</i>, or otherwise
<i>forward</i>.</p>
<i>forward</i>. The user agent must then <a href=#queue-a-task>queue a task</a>
to <a href=#fire-a-simple-event>fire a simple event</a> that bubbles named <code title=event-select>select</code> at the element, using the
<a href=#user-interaction-task-source>user interaction task source</a> as the task source.</p>


<p>The <dfn id=dom-textarea/input-selectionstart title=dom-textarea/input-selectionStart><code>selectionStart</code></dfn>
<a href=#case-sensitive>case-sensitive</a> match for the string "<code title="">backward</code>", <i>forward</i> if <var title="">direction</var> is a <a href=#case-sensitive>case-sensitive</a> match for
the string "<code title="">forward</code>" or if the platform does
not support selections with the direction <i>none</i>, and
<i>none</i> otherwise (including if the argument is omitted).</p>
<i>none</i> otherwise (including if the argument is omitted). The
user agent must then <a href=#queue-a-task>queue a task</a> to <a href=#fire-a-simple-event>fire a
simple event</a> that bubbles named <code title=event-select>select</code> at the element, using the
<a href=#user-interaction-task-source>user interaction task source</a> as the task source.</p>


<p>All elements to which this API applies have either a selection or
17 source
elements, these methods and attributes must operate on the element's
<span title="concept-textarea-raw-value">raw value</span>.</p>

<p>Where possible, user interface features for changing the text
selection in <code>input</code> and <code>textarea</code> elements
must be implemented in terms of the DOM API described in this
section, so that, e.g., all the same events fire.</p>


<p>The selections of <code>input</code> and <code>textarea</code>
elements have a <i>direction</i>, which is either <i>forward</i>,
<i>backward</i>, or <i>none</i>. This direction is set when the user
must cause the contents of the text field to be fully selected, with
the selection direction being none, if the platform support
selections with the direction <i>none</i>, or otherwise
<i>forward</i>.</p>
<i>forward</i>. The user agent must then <span>queue a task</span>
to <span>fire a simple event</span> that bubbles named <code
title="event-select">select</code> at the element, using the
<span>user interaction task source</span> as the task source.</p>


<p>The <dfn
title="">direction</var> is a <span>case-sensitive</span> match for
the string "<code title="">forward</code>" or if the platform does
not support selections with the direction <i>none</i>, and
<i>none</i> otherwise (including if the argument is omitted).</p>
<i>none</i> otherwise (including if the argument is omitted). The
user agent must then <span>queue a task</span> to <span>fire a
simple event</span> that bubbles named <code
title="event-select">select</code> at the element, using the
<span>user interaction task source</span> as the task source.</p>


<p>All elements to which this API applies have either a selection or

0 comments on commit 7ccc3c5

Please sign in to comment.
You can’t perform that action at this time.