html5/spec Overview.html,1.1464,1.1465

Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv18235

Modified Files:
	Overview.html 
Log Message:
WF2: <select> interaction. (whatwg r2292)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1464
retrieving revision 1.1465
diff -u -d -r1.1464 -r1.1465
--- Overview.html	7 Oct 2008 05:22:57 -0000	1.1464
+++ Overview.html	7 Oct 2008 21:06:39 -0000	1.1465
@@ -21181,7 +21181,33 @@
   integers</span> returns 1, 0, or an error, then the control should
   be rendered as a drop-down select box. Otherwise, it should be
   rendered as a list select box.</p>
-  --><p>The <code title=attr-fae-form><a href=#attr-fae-form>form</a></code> attribute is used to
+  --><p>If the <code title=attr-select-multiple><a href=#attr-select-multiple>multiple</a></code>
+  attribute is absent, and the element is not <a href=#concept-fe-disabled title=concept-fe-disabled>disabled</a>, then the user agent
+  should allow the user to pick an <code><a href=#the-option-element>option</a></code> element in its
+  <a href=#concept-select-option-list title=concept-select-option-list>list of options</a> that
+  is itself not <a href=#concept-option-disabled title=concept-option-disabled>disabled</a>. Upon this
+  <code><a href=#the-option-element>option</a></code> element being picked (either through a click, or
+  through unfocusing the element after changing its value, or through
+  any other mechanism), and before the relevant user interaction event
+  is queued (e.g. before the <span title=event-click>click</span>
+  event), the user agent must set the <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> of the
+  picked <code><a href=#the-option-element>option</a></code> element to true, set the <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> of all the
+  other <code><a href=#the-option-element>option</a></code> element in its <a href=#concept-select-option-list title=concept-select-option-list>list of options</a> to false,
+  and then <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-change>change</code> at the
+  <code><a href=#the-select-element>select</a></code> element, using the <a href=#user-interaction-task-source>user interaction task
+  source</a> as the task source.<p>If the <code title=attr-select-multiple><a href=#attr-select-multiple>multiple</a></code>
+  attribute is present, and the element is not <a href=#concept-fe-disabled title=concept-fe-disabled>disabled</a>, then the user agent
+  should allow the user to toggle the <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> of the
+  <code><a href=#the-option-element>option</a></code> elements in its <a href=#concept-select-option-list title=concept-select-option-list>list of options</a> that are
+  themselves not <a href=#concept-option-disabled title=concept-option-disabled>disabled</a>. Upon the <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> of one or
+  more <code><a href=#the-option-element>option</a></code> elements being changed by the user, and
+  before the relevant user interaction event is queued (e.g. before a
+  related <span title=event-click>click</span> event), 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-change>change</code> at the
+  <code><a href=#the-select-element>select</a></code> element, using the <a href=#user-interaction-task-source>user interaction task
+  source</a> as the task source.<p>The <code title=attr-fae-form><a href=#attr-fae-form>form</a></code> attribute is used to
   explicitly associate the <code><a href=#the-select-element>select</a></code> element with its
   <a href=#form-owner>form owner</a>. The <code title=attr-fe-name><a href=#attr-fe-name>name</a></code>
   attribute represents the element's name. The <code title=attr-fe-disabled><a href=#attr-fe-disabled>disabled</a></code> attribute is used to make
@@ -21274,7 +21300,7 @@
   readonly attribute long <span title=dom-option-index>index</span>;
 };</pre>
    </dd> 
-  </dl><p class=XXX>...<p class=XXX>... <dfn id=concept-option-selected title=concept-option-selected>selected</dfn><p class=XXX>... <dfn id=concept-option-value title=concept-option-value>value</dfn><p class=XXX>
+  </dl><p class=XXX>...<p class=XXX>... <dfn id=concept-option-selected title=concept-option-selected>selected</dfn>/<dfn id=concept-option-selectedness title=concept-option-selectedness>selectedness</dfn><p class=XXX>... <dfn id=concept-option-value title=concept-option-value>value</dfn><p class=XXX>... <dfn id=concept-option-disabled title=concept-option-disabled>disabled</dfn><p class=XXX>
    <dfn id=dom-option title=dom-option><code>Option()</code></dfn>
    <dfn id=dom-option-n title=dom-option-n><code>Option(<var title="">name</var>)</code></dfn>
    <dfn id=dom-option-nv title=dom-option-nv><code>Option(<var title="">name</var>, <var title="">value</var>)</code></dfn>

Received on Tuesday, 7 October 2008 21:07:16 UTC