W3C home > Mailing lists > Public > w3c-wai-hc@w3.org > October to December 1997

Re: SELECT structures with lots of OPTIONs

From: Al Gilman <asgilman@access.digex.net>
Date: Mon, 13 Oct 1997 11:27:26 -0400 (EDT)
Message-Id: <199710131527.LAA13979@access4.digex.net>
To: w3c-wai-hc@w3.org (HC team)
to follow up on what Dave Raggett said:
> A compromise is to get the HTML-WG to agree to something like:
> <form>
>   <p>Nested selections
>   <select name=pizza>
>     <optgroup name=size>
>       <option>medium
>       <option>large
>     <optgroup name=toppings>
>       <option>onions
>       <option>meat balls
>   </select>
> </form>

A yet more minimal way to get to the same capability would be to
use LH or equivalent between OPTIONs.  The browser can fold at
these points, and number linearly or hierarchically.

The example would look like

  <p>Nested selections
  <select name=pizza>
      <option>meat balls


This may have the advantage of getting the group label displayed in 
legacy browsers as opposed to the NAME attribute which hides
except in new releases.

-- Al

PS: if the OPTGROUP container is what we recommend, the attribute
name should better be LABEL in preference to NAME.
Received on Monday, 13 October 1997 11:28:06 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:35:00 UTC