[whatwg] Comment on Forms 2.0: OPTGROUP Nesting

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