I am working on a web form that has Optgroup in it, and the first time I realized browsers render this attribute differently.

I have something like this:

 <optgroup label="United States">

          <option label="CA" value="California">California</option>
</optgroup>

In Firefox, it display: California

In Safari and Opera, it displays: CA

p/s. Haven't check on IE yet.


According to w3c's html spec

http://www.w3.org/TR/html4/interact/forms.html#form-labels

I made an example page with markup copied from the above page
http://lotusfromthemud.com/option.html

represents the following grouping:

  None
  PortMaster 3
      3.7.1
      3.7
      3.5
  PortMaster 2
      3.7
      3.5
  IRX
      3.7R
      3.5R


In 17.6.1 Pre-selected options, scolled down to the end of 17.6.1,
It says: A graphical user agent might render this as : (screenshot from old Netscape I think)

Gecko based browsers are graphical user agents yet Safari and Opera are not? (!!!)

Screen reader isn't graphic user agent, so it will read 'CA" instead of 'California'?

It's quite annoying if I have to add :
  <option label="California" value="California">California</option>

tee






*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to