[whatwg] Re: several messages

Ian Hickson ian at hixie.ch
Tue Jul 6 06:13:50 PDT 2004

On Thu, 1 Jul 2004, voracity wrote:
> I'd like the currently selected option to be exposed. Thus if a person
> has chosen (or typed) 'Choice 2', you could use 'combo1.selectedOption'
> to get the chosen element (i.e. <option value="Choice 2"/>). If the user
> has typed something new (or hasn't type anything at all), then
> 'combo1.selectedOption' would be null.


> Now, if datalists have similar properties to select's in the DOM (i.e. a
> .selectedIndex property, a .options array, etc.) then that would
> probably be good enough.

selectedIndex makes no sense since you can use a datalist from multiple
inputs. However, I agree that options would be useful.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

More information about the whatwg mailing list