On Oct 24, 2007, at 12:14 AM, Philippe Wittenbergh wrote:


On Oct 24, 2007, at 3:27 PM, Tee G. Peng wrote:

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

IE Mac displays 'CA' in your 1st example
IE 7 Win displays 'CA' in your 1st example
Opera 9.5 alpha: idem ditto.

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

Under 17.6.1 it says (specifically for label in option):
<http://www.w3.org/TR/html401/interact/forms.html#adef-label-OPTION>
label = text [CS]
This attribute allows authors to specify a shorter label for an option than the content of the OPTION element. When specified, user agents should use the value of this attribute rather than the content of the OPTION element as the option label.

That sounds, to me, as validating what Safari, IE Mac, IE Win Camino are doing.
Note that Firefox is not wrong by the description given above.


I am sorry I only understand this thing half.

We must use 'label' right?

<option label="3.7" value="pm2_3.7">PortMaster 2 with ComOS 3.7</ option>

So Firefox reads "PortMaster 2 with ComOS 3.7" and the rest of the browsers read from 'label' attribute, so the screen reader?

Can 'value' be removed? Everytime I work on a web form, the same qeustion kept throwing back to me. Is there any attribute one can saftly remove without causing browsers, screen reader and form script suffer?

label and ID are needed, Name also needed for the form script I use; this leaves the 'value' which I never able to decide the *value* of its usage.

I really find a markup like this is too much
<label for="myform">My form </label>
<input name="myform" id="myform" value="myform">


tee


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

Reply via email to