W3C home > Mailing lists > Public > www-style@w3.org > March 2005

List selector and class attribute

From: Allan Sandfeld Jensen <kde@carewolf.com>
Date: Mon, 21 Mar 2005 22:39:21 +0100
To: www-style@w3.org
Message-Id: <200503212239.22392.kde@carewolf.com>

I hope you can help me with a small problem with class-selectors

In CSS 2.1 and CSS Selectors the List selectors is described like this:
	"Match when the element's "att" attribute value is a space-separated list of 
"words", one of which is exactly "val". If this selector is used, the words 
in the value must not contain spaces (since they are separated by spaces)."

"Notice the term space-separated. "

In HTML 4.01 the class attribute is described like this:
	"This attribute assigns a class name or set of class names to an element. Any 
number of elements may be assigned the same class name or names. Multiple 
class names must be separated by white space characters."

Notice here it is "separated by white-space characters". 

The question is: 
	Should =~ match white-space separated values instead, or really only 
	Or should HTML attributes be white-space transformed so only spaces remain.

Received on Monday, 21 March 2005 21:39:35 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:17 UTC