[html5] r5399 - [giow] (2) Define option.selected; make <option disabled selected> still get sel [...]
whatwg at whatwg.org
whatwg at whatwg.org
Mon Aug 30 11:22:56 PDT 2010
Author: ianh
Date: 2010-08-30 11:22:54 -0700 (Mon, 30 Aug 2010)
New Revision: 5399
Modified:
complete.html
index
source
Log:
[giow] (2) Define option.selected; make <option disabled selected> still get selected.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=10106
Modified: complete.html
===================================================================
--- complete.html 2010-08-30 18:07:53 UTC (rev 5398)
+++ complete.html 2010-08-30 18:22:54 UTC (rev 5399)
@@ -43589,9 +43589,7 @@
<p>The <dfn id=concept-option-selectedness title=concept-option-selectedness>selectedness</dfn>
of an <code><a href=#the-option-element>option</a></code> element is a boolean state, initially
- false. If the element is <a href=#concept-option-disabled title=concept-option-disabled>disabled</a>, then the element's
- <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> is
- always false and cannot be set to true. Except where otherwise
+ false. Except where otherwise
specified, when the element is created, its <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> must be set
to true if the element has a <code title=attr-option-selected><a href=#attr-option-selected>selected</a></code> attribute. Whenever an
<code><a href=#the-option-element>option</a></code> element's <code title=attr-option-selected><a href=#attr-option-selected>selected</a></code> attribute is added, its
@@ -43607,6 +43605,8 @@
initial <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> state when
using the constructor.</p>
+ <!-- http://software.hixie.ch/utilities/js/live-dom-viewer/saved/604 -->
+
</div>
<p>A <code><a href=#the-select-element>select</a></code> element whose <code title=attr-select-multiple><a href=#attr-select-multiple>multiple</a></code> attribute is not
@@ -43630,6 +43630,8 @@
<p>Returns true if the element is selected, and false otherwise.</p>
+ <p>Can be set, to override the current state of the element.</p>
+
</dd>
<dt><var title="">option</var> . <code title=dom-option-index><a href=#dom-option-index>index</a></code></dt>
@@ -43687,8 +43689,9 @@
to the new value.</p>
<p>The <dfn id=dom-option-selected title=dom-option-selected><code>selected</code></dfn>
- IDL attribute must return true if the element's <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> is true, and
- false otherwise.</p>
+ IDL attribute, on getting, must return true if the element's <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> is true, and
+ false otherwise. On setting, it must set the element's <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> to the new
+ value.</p>
<p>The <dfn id=dom-option-index title=dom-option-index><code>index</code></dfn> IDL
attribute must return the element's <a href=#concept-option-index title=concept-option-index>index</a>.</p>
Modified: index
===================================================================
--- index 2010-08-30 18:07:53 UTC (rev 5398)
+++ index 2010-08-30 18:22:54 UTC (rev 5399)
@@ -43514,9 +43514,7 @@
<p>The <dfn id=concept-option-selectedness title=concept-option-selectedness>selectedness</dfn>
of an <code><a href=#the-option-element>option</a></code> element is a boolean state, initially
- false. If the element is <a href=#concept-option-disabled title=concept-option-disabled>disabled</a>, then the element's
- <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> is
- always false and cannot be set to true. Except where otherwise
+ false. Except where otherwise
specified, when the element is created, its <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> must be set
to true if the element has a <code title=attr-option-selected><a href=#attr-option-selected>selected</a></code> attribute. Whenever an
<code><a href=#the-option-element>option</a></code> element's <code title=attr-option-selected><a href=#attr-option-selected>selected</a></code> attribute is added, its
@@ -43532,6 +43530,8 @@
initial <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> state when
using the constructor.</p>
+ <!-- http://software.hixie.ch/utilities/js/live-dom-viewer/saved/604 -->
+
</div>
<p>A <code><a href=#the-select-element>select</a></code> element whose <code title=attr-select-multiple><a href=#attr-select-multiple>multiple</a></code> attribute is not
@@ -43555,6 +43555,8 @@
<p>Returns true if the element is selected, and false otherwise.</p>
+ <p>Can be set, to override the current state of the element.</p>
+
</dd>
<dt><var title="">option</var> . <code title=dom-option-index><a href=#dom-option-index>index</a></code></dt>
@@ -43612,8 +43614,9 @@
to the new value.</p>
<p>The <dfn id=dom-option-selected title=dom-option-selected><code>selected</code></dfn>
- IDL attribute must return true if the element's <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> is true, and
- false otherwise.</p>
+ IDL attribute, on getting, must return true if the element's <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> is true, and
+ false otherwise. On setting, it must set the element's <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> to the new
+ value.</p>
<p>The <dfn id=dom-option-index title=dom-option-index><code>index</code></dfn> IDL
attribute must return the element's <a href=#concept-option-index title=concept-option-index>index</a>.</p>
Modified: source
===================================================================
--- source 2010-08-30 18:07:53 UTC (rev 5398)
+++ source 2010-08-30 18:22:54 UTC (rev 5399)
@@ -48730,10 +48730,7 @@
<p>The <dfn title="concept-option-selectedness">selectedness</dfn>
of an <code>option</code> element is a boolean state, initially
- false. If the element is <span
- title="concept-option-disabled">disabled</span>, then the element's
- <span title="concept-option-selectedness">selectedness</span> is
- always false and cannot be set to true. Except where otherwise
+ false. Except where otherwise
specified, when the element is created, its <span
title="concept-option-selectedness">selectedness</span> must be set
to true if the element has a <code
@@ -48754,6 +48751,8 @@
title="concept-option-selectedness">selectedness</span> state when
using the constructor.</p>
+ <!-- http://software.hixie.ch/utilities/js/live-dom-viewer/saved/604 -->
+
</div>
<p>A <code>select</code> element whose <code
@@ -48784,6 +48783,8 @@
<p>Returns true if the element is selected, and false otherwise.</p>
+ <p>Can be set, to override the current state of the element.</p>
+
</dd>
<dt><var title="">option</var> . <code title="dom-option-index">index</code></dt>
@@ -48847,9 +48848,11 @@
to the new value.</p>
<p>The <dfn title="dom-option-selected"><code>selected</code></dfn>
- IDL attribute must return true if the element's <span
+ IDL attribute, on getting, must return true if the element's <span
title="concept-option-selectedness">selectedness</span> is true, and
- false otherwise.</p>
+ false otherwise. On setting, it must set the element's <span
+ title="concept-option-selectedness">selectedness</span> to the new
+ value.</p>
<p>The <dfn title="dom-option-index"><code>index</code></dfn> IDL
attribute must return the element's <span
More information about the Commit-Watchers
mailing list