W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2004

[whatwg] Comment on Forms 2.0: OPTGROUP Nesting

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 12 Jul 2004 14:39:38 +0000 (UTC)
Message-ID: <Pine.LNX.4.58.0407121359320.4373@dhalsim.dreamhost.com>

I read the posts in this mailing list asking for nested <optgroup>s, and
read lots of other documents on the matter.

The legacy user agent problem is that this:

   <select>
    <option> 1 </option>
    <optgroup label="A">
     <option> A.1 </option>
     <optgroup label="A.B">
      <option> A.B.1 </option>
     </optgroup>
     <option> A.2 </option>
    </optgroup>
    <option> 2 </option>
   </select>

...renders as:

   1
   *A*
     A.1
   *A.B*
     A.B.1
   A.2           <-------
   2

Note how the "A.2" line is not indented.

In fact, in IE, the <optgroup>s don't work at all unless you include the
(optional) </option> tags.

   http://junkyard.damowmow.com/147

But I guess that's a relatively minor point, so I'll put nested
<optgroup>s back into the spec, and we can get implementation experience
to tell us (a) if it can't be implemented (e.g. no widgets to support it)
and (b) if it causes any problems on existing pages.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 12 July 2004 07:39:38 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:35 UTC