Skip to content

Commit

Permalink
[giow] (2) Try to match implementations more closely for <select mult…
Browse files Browse the repository at this point in the history
…iple size=2>

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

git-svn-id: http://svn.whatwg.org/webapps@5010 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Apr 13, 2010
1 parent 7dd0b02 commit 934660b
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 13 deletions.
24 changes: 20 additions & 4 deletions complete.html
Expand Up @@ -39080,10 +39080,26 @@ <h4 id=the-select-element><span class=secno>4.10.9 </span>The <dfn><code>select<
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>
Expand Down
24 changes: 20 additions & 4 deletions index
Expand Up @@ -38981,10 +38981,26 @@ You cannot complete this form until the field is correct.</samp></pre>
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>
Expand Down
31 changes: 26 additions & 5 deletions source
Expand Up @@ -43392,11 +43392,32 @@ You cannot complete this form until the field is correct.</samp></pre>
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
Expand Down

0 comments on commit 934660b

Please sign in to comment.