Re: Styling by attribute-based association?

Matthew Raymond schreef:
>> Side note #1:
>>   There is a funny note in the XHTML 2.0 (list module, nl's):
>>   "Note that a navigation list always starts with a label element that defines
>> the label for the list."
>>   What this means: "Must start" or "May start" ?  What if it does not?
> 
>    Labels should be required, because you might have tear-off menus in
> some environments. However, that doesn't mean a label _element_. It
> could just mean an attribute. In fact, it may be useful to have a one
> label in the parent menu and a slightly different one for the torn-off
> submenu.

An attribute instead of a label element is a bad idea.

Attributes can contain no markup, such as Ruby, abbreviations, 
directionality indications, etc. They also cannot be styled conveniently.

That is a major design improvement of XHTML2, and also the reason why 
e.g. the alternate text of images has moved out of the alt attribute 
into the element’s content.


~Grauw

-- 
Ushiko-san! Kimi wa doushite, Ushiko-san nan da!!

Received on Friday, 28 October 2005 09:14:56 UTC