W3C home > Mailing lists > Public > www-html-editor@w3.org > October to December 1997

[Fwd: Re: WAI proposed enhancements]

From: Dan Connolly <connolly@w3.org>
Date: Sat, 25 Oct 1997 13:55:05 -0500
Message-ID: <34524089.E25@w3.org>
To: www-html-editor@w3.org
Excellent detail work, Dave.

I think that example (and discussion about
new/old browsers) is a great one to
copy-and-paste into the spec.

-- 
Dan Connolly, W3C HTML Working Group Chair
http://www.w3.org/People/Connolly/
phone://1/512/310-2971

attached mail follows:


On Fri, 24 Oct 1997, Scott Isaacs wrote:

> Premature send...
> <SELECT name="ComOS"> 
>   <OPTGROUP value =washington>
>     <OPTION VALUE=vancouver>Vancouver
>   <OPTGROUP value="british columbia">
>     <option value=vancouver>Vancouver
> </SELECT>

This is invalid with respect to the Oct 24th Draft of HTML 4.0.

You need to add the end tags for OPTGROUP, and to drop the value
attribute on OPTGROUP. It would also make sense to tailor the
labels for the options and groups for viewing on both old and
new browsers, e.g. 

<SELECT name="ComOS"> 
  <OPTGROUP label="Washington">
    <OPTION VALUE="Vancouver WA"
        label="Vancouver">Vancouver, Washington
  </OPTGROUP>
  <OPTGROUP label="British Columbia">
    <option value="Vancouver BC"
        label="Vancouver">Vancouver, British Columbia
  </OPTGROUP>
</SELECT>


People using old browsers would see the flat list:

  Vancouver, Washington
  Vancouver, British Columbia

People using new browsers would see the hierarchy:

  Washtington
     Vancouver
  British Columbia
     Vancouver

I hope you will agree that this provides a workable solution
that allows the same markup to be viewed effectively on both
old and new browsers.

Regards,

-- Dave Raggett <dsr@w3.org> http://www.w3.org/People/Raggett
phone: +44 122 578 2984 (or 2521) +44 385 320 444 (gsm mobile)
World Wide Web Consortium (on assignment from HP Labs)
Received on Saturday, 25 October 1997 14:53:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:43 GMT