W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2009

[whatwg] Nested optgroups

From: Ian Hickson <ian@hixie.ch>
Date: Sat, 13 Jun 2009 00:51:06 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0906130049080.1648@hixie.dreamhostps.com>
On Thu, 4 Jun 2009, Brett Zamir wrote:
> > On Mon, 13 Apr 2009, Markus Ernst wrote:
> > >
> > > I found a message in the list archives from July 2004, where Ian 
> > > announced to put nested optgroups back into the spec: 
> > > http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2004-July/001200.html
> > > 
> > > Anyway in the current spec, the optgroup element is not allowed 
> > > inside another optgroup element: 
> > > http://www.whatwg.org/specs/web-apps/current-work/#the-optgroup-element
> > > 
> > > Has this been removed again since 2004? I did not find more on this 
> > > in the list archives.
> > 
> > Yeah, this was removed because we couldn't find a good way to get 
> > browsers to support it without breaking backwards compatibility with 
> > legacy content (which relies on the non-nesting parser behaviour).
>
> Would there be a way to allow a new element to trigger this behavior 
> (maybe deprecating optgroup as well if an attribute on the new element 
> could indicate compactness)?

This is a possibility, but I think we have enough form feature changes in 
HTML5 for now; this is something that'd be best reexamined in a future 
version.


> Along the lines of expanding HTML more toward regular applications, I 
> would think this could help quite nicely for building menu bars or the 
> frequently used navigation bars recommended by accessibility guidelines 
> without JavaScript (CSS-only ones are rare)...

You can do nested menus with menu buttons and context menus using 
the <menu> element, which is more or less what you're describing.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 12 June 2009 17:51:06 UTC

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