W3C home > Mailing lists > Public > www-html@w3.org > February 2006

minor ambiguity: label attribute of option element (17.6.1)

From: Germain Garand <germain@ebooksfrance.org>
Date: Wed, 15 Feb 2006 12:08:38 +0100
To: www-html@w3.org
Message-Id: <200602151208.38126.germain@ebooksfrance.org>


I am currently wondering about an ambiguity
in section 17.6.1 of HTML 4.01:

 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."

It is unclear if this is to be applied in all contexts (including simple 
SELECT > OPTION) or only in the context of hierarchical menus (SELECT > 

As the dtd says precisely:

  label       %Text;         #IMPLIED  -- for use in hierarchical menus --

and the specification further gives as an illustration: 

" <SELECT name="ComOS">
     <OPTION selected label="none" value="none">None</OPTION>
     <OPTGROUP label="PortMaster 3">
       <OPTION label="3.7.1" value="pm3_3.7.1">PortMaster 3 with ComOS 

represents the following grouping:
  PortMaster 3

  => the capitalization of "None" in the representation hints that the 
option's content is to be displayed in the UI in the non-hierarchical case, 
and not the label attribute.

Thank you for any clarification you may bring,

Received on Wednesday, 15 February 2006 11:43:14 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:12 UTC