Reply to Re: CSS: Class error

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация