[html5] r5010 - [giow] (2) Try to match implementations more closely for <select multiple size=2 [...]

whatwg at whatwg.org whatwg at whatwg.org
Mon Apr 12 17:52:37 PDT 2010


Author: ianh
Date: 2010-04-12 17:52:36 -0700 (Mon, 12 Apr 2010)
New Revision: 5010

Modified:
   complete.html
   index
   source
Log:
[giow] (2) Try to match implementations more closely for <select multiple size=2>
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=9425

Modified: complete.html
===================================================================
--- complete.html	2010-04-13 00:26:57 UTC (rev 5009)
+++ complete.html	2010-04-13 00:52:36 UTC (rev 5010)
@@ -39080,10 +39080,26 @@
   false.</p>
 
   <p>If the <code title=attr-select-multiple><a href=#attr-select-multiple>multiple</a></code>
-  attribute is absent, whenever there are no <code><a href=#the-option-element>option</a></code>
-  elements in the <code><a href=#the-select-element>select</a></code> element's <a href=#concept-select-option-list title=concept-select-option-list>list of options</a> that have
-  their <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a>
-  set to true, the user agent must set the <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> of the first
+  attribute is absent and the element's <a href=#concept-select-size title=concept-select-size>display size</a> is greater than 1,
+  then the user agent should also allow the user to request that the
+  <code><a href=#the-option-element>option</a></code> whose <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> is true, if
+  any, be unselected. Upon this request being conveyed to the user
+  agent, and before the relevant user interaction event <!--
+  interaction event spec point --> is queued (e.g. before the <code title=event-click><a href=#event-click>click</a></code> event), the user agent must set the
+  <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> of
+  that <code><a href=#the-option-element>option</a></code> element 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> that bubbles named
+  <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, then <a href=#broadcast-formchange-events>broadcast <code title=event-formchange>formchange</code> events</a> at the
+  element's <a href=#form-owner>form owner</a>.</p>
+
+  <p>If the <code title=attr-select-multiple><a href=#attr-select-multiple>multiple</a></code>
+  attribute is absent and the element's <a href=#concept-select-size title=concept-select-size>display size</a> is 1, then whenever
+  there are no <code><a href=#the-option-element>option</a></code> elements in the <code><a href=#the-select-element>select</a></code>
+  element's <a href=#concept-select-option-list title=concept-select-option-list>list of
+  options</a> that have their <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> set to true,
+  the user agent must set the <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> of the first
   <code><a href=#the-option-element>option</a></code> element in the <a href=#concept-select-option-list title=concept-select-option-list>list of options</a> in
   <a href=#tree-order>tree order</a> that is not <a href=#concept-option-disabled title=concept-option-disabled>disabled</a>, if any, to
   true.</p>

Modified: index
===================================================================
--- index	2010-04-13 00:26:57 UTC (rev 5009)
+++ index	2010-04-13 00:52:36 UTC (rev 5010)
@@ -38981,10 +38981,26 @@
   false.</p>
 
   <p>If the <code title=attr-select-multiple><a href=#attr-select-multiple>multiple</a></code>
-  attribute is absent, whenever there are no <code><a href=#the-option-element>option</a></code>
-  elements in the <code><a href=#the-select-element>select</a></code> element's <a href=#concept-select-option-list title=concept-select-option-list>list of options</a> that have
-  their <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a>
-  set to true, the user agent must set the <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> of the first
+  attribute is absent and the element's <a href=#concept-select-size title=concept-select-size>display size</a> is greater than 1,
+  then the user agent should also allow the user to request that the
+  <code><a href=#the-option-element>option</a></code> whose <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> is true, if
+  any, be unselected. Upon this request being conveyed to the user
+  agent, and before the relevant user interaction event <!--
+  interaction event spec point --> is queued (e.g. before the <code title=event-click><a href=#event-click>click</a></code> event), the user agent must set the
+  <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> of
+  that <code><a href=#the-option-element>option</a></code> element 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> that bubbles named
+  <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, then <a href=#broadcast-formchange-events>broadcast <code title=event-formchange>formchange</code> events</a> at the
+  element's <a href=#form-owner>form owner</a>.</p>
+
+  <p>If the <code title=attr-select-multiple><a href=#attr-select-multiple>multiple</a></code>
+  attribute is absent and the element's <a href=#concept-select-size title=concept-select-size>display size</a> is 1, then whenever
+  there are no <code><a href=#the-option-element>option</a></code> elements in the <code><a href=#the-select-element>select</a></code>
+  element's <a href=#concept-select-option-list title=concept-select-option-list>list of
+  options</a> that have their <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> set to true,
+  the user agent must set the <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> of the first
   <code><a href=#the-option-element>option</a></code> element in the <a href=#concept-select-option-list title=concept-select-option-list>list of options</a> in
   <a href=#tree-order>tree order</a> that is not <a href=#concept-option-disabled title=concept-option-disabled>disabled</a>, if any, to
   true.</p>

Modified: source
===================================================================
--- source	2010-04-13 00:26:57 UTC (rev 5009)
+++ source	2010-04-13 00:52:36 UTC (rev 5010)
@@ -43392,11 +43392,32 @@
   false.</p>
 
   <p>If the <code title="attr-select-multiple">multiple</code>
-  attribute is absent, whenever there are no <code>option</code>
-  elements in the <code>select</code> element's <span
-  title="concept-select-option-list">list of options</span> that have
-  their <span title="concept-option-selectedness">selectedness</span>
-  set to true, the user agent must set the <span
+  attribute is absent and the element's <span
+  title="concept-select-size">display size</span> is greater than 1,
+  then the user agent should also allow the user to request that the
+  <code>option</code> whose <span
+  title="concept-option-selectedness">selectedness</span> is true, if
+  any, be unselected. Upon this request being conveyed to the user
+  agent, and before the relevant user interaction event <!--
+  interaction event spec point --> is queued (e.g. before the <code
+  title="event-click">click</code> event), the user agent must set the
+  <span title="concept-option-selectedness">selectedness</span> of
+  that <code>option</code> element to false and then <span>queue a
+  task</span> to <span>fire a simple event</span> that bubbles named
+  <code title="event-change">change</code> at the <code>select</code>
+  element, using the <span>user interaction task source</span> as the
+  task source, then <span>broadcast <code
+  title="event-formchange">formchange</code> events</span> at the
+  element's <span>form owner</span>.</p>
+
+  <p>If the <code title="attr-select-multiple">multiple</code>
+  attribute is absent and the element's <span
+  title="concept-select-size">display size</span> is 1, then whenever
+  there are no <code>option</code> elements in the <code>select</code>
+  element's <span title="concept-select-option-list">list of
+  options</span> that have their <span
+  title="concept-option-selectedness">selectedness</span> set to true,
+  the user agent must set the <span
   title="concept-option-selectedness">selectedness</span> of the first
   <code>option</code> element in the <span
   title="concept-select-option-list">list of options</span> in




More information about the Commit-Watchers mailing list