- From: Simon Pieters <simonp@opera.com>
- Date: Tue, 31 Aug 2010 09:01:27 +0200
On Mon, 30 Aug 2010 20:22:56 +0200, <whatwg at whatwg.org> wrote: > 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: 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 Maybe <select required><option value selected disabled>Choose one... should be allowed? The spec allows <select required><option value>Choose one...<option selected>Foo. Maybe it should require the label option to be selected by default (either implicitly or explicitly) when the select has required? The spec currently doesn't require there to be any select label option if the required attribute is present on select. -- Simon Pieters Opera Software
Received on Tuesday, 31 August 2010 00:01:27 UTC