[whatwg] [html5] r5399 - [giow] (2) Define option.selected; make <option disabled selected> still get sel [...]
ian at hixie.ch
Thu Apr 28 12:34:14 PDT 2011
On Wed, 8 Dec 2010, Simon Pieters wrote:
> On Tue, 07 Dec 2010 23:13:13 +0100, Ian Hickson <ian at hixie.ch> wrote:
> > On Tue, 31 Aug 2010, Simon Pieters wrote:
> > >
> > > Maybe <select required><option value selected disabled>Choose one...
> > > should be allowed?
> > I considered that, but since disabled options don't get selected, that
> > wouldn't work without yet more special-casing.
> It gets selected in Opera, Firefox and WebKit. AFAICT the spec makes it
> selected, too ("selectedness" is true if selected="" is present
> regardless of disabled="").
Good point. Fixed.
> > > The spec currently doesn't require there to be any select label
> > > option if the required attribute is present on select.
> > Right, the label doesn't have to be present. Why would we require one?
> Because without one the required attribute has no effect, so is likely
> an authoring mistake.
Only if neither multiple="" and size="" are specified. But fair enough, in
that case I've made it required that there be a label.
> Also, s/selected element's/select element's/
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
More information about the whatwg