W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2008

[whatwg] Arbitrary HTML in option-elements

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 22 Oct 2008 06:29:41 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0810220627240.1237@hixie.dreamhostps.com>
On Tue, 30 Nov 2004, Matthew Raymond wrote:
> Olav Junker Kj?r wrote:
> > It would be a useful feature if arbitrary HTML was allowed in option
> > elements. E.g. items in a dropdown could have different icons.
> Yeah, personally, I think we should look at adding the |icon| attribute 
> to the <option> element.

We can't allow arbitrary markup in <option> in text/html for legacy 
reasons. The icon idea seems reasonable for menus of actions, but we're 
doing with with <menu> now; for drop down lists, most lists in most 
operating system UIs don't seem to have an icon so I'm not convinced we 
really want to expose that yet.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 21 October 2008 23:29:41 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:06 UTC