Re: [CSS21] Additional Note

On Thu, 25 Aug 2005, Craig Northway wrote:
> > > 
> > > Note: If an element has multiple class attributes, their values must 
> > > be concatenated with spaces between the values before searching for 
> > > the class. As of this time the working group is not aware of any 
> > > manner in which this situation can be reached, however, so this 
> > > behaviour is explicitly non-normative in this specification.
> > > 
> > > Please reconsider this note because multiple attributes of the same 
> > > name are not allowed in either XML or SGML.
> > 
> > I am not sure I understand your comment. The note is about attributes 
> > that associate one or more classes with an element which can easily be 
> > achieved by something like <x y:class='foo' z:class='bar' /> though as 
> > noted, the Working Group is not aware of a case where this can occur 
> > in practise.
>
> Oh, so its about multiple class attributes in different namespaces. Well 
> can the note be made clearer with your example?

Bjoern's example isn't really an example, since those attributes aren't 
class attributes. Also, since the word "class" in the note is not marked 
up as being code, indicating that it is a normal English word as opposed 
to an attribute name. Given this, and the earlier paragraphs explaining 
the meaning of "class attribute" the meanning of this note seems clear.

Another way that the note's concern could come to pass is if a language 
defined two attributes as being class attributes, such as saying that both 
the |role| and |class| attributes are class attributes, in:

   <p role="a b" class="c d"/>

However, it doesn't seem that an example like this would be that helpful, 
as it would only draw undue attention to this note which is at best a 
friendly warning to implementors.

Would you mind if the note was left as is?


> And the note is included twice in the specification.

Fixed, thanks.

Cheers,
-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Sunday, 28 August 2005 09:25:38 UTC