Posted by Michael Winter on 02/26/06 14:55
On 26/02/2006 09:11, Els wrote:
[snip]
> Note: I found this link easier to read:
> http://www.w3.org/TR/REC-CSS2/selector.html#simple-selector
Yes, but I think I ended up paraphrasing the applicable paragraph. :)
Not intentionally, mind you.
Section 5 (Selectors) doesn't contain any examples of of mixed type
attribute selectors as far as I can see. However, the (normative)
grammar makes it unequivocally clear that they are valid for simple
selectors[1].
Mike
[1] I should point out that the simple_selector production in the
CSS 2 grammar is in error. It was corrected in CSS 2.1 to:
simple_selector
: element_name [ HASH | class | attrib | pseudo ]*
| [ HASH | class | attrib | pseudo ]+
;
The previous production made the selector entirely optional.
That is,
{
/* Declarations */
}
would be valid.
--
Michael Winter
Prefix subject with [News] before replying by e-mail.
[Back to original message]
|