Thomas J.S.: Link Klassen

Beitrag lesen

Hallo Sven

[2] Ohne Bezug zu anderen Sätzen sollte der Satz so lauten: "Der Unterstrich sollte in CSS-Klassennamen nicht verwendet werden, weil er als Klassennamenbestandteil nicht zulässig ist."»»

es war einmal:
http://www.w3.org/TR/REC-CSS2/syndata.html#q4
"In CSS2, identifiers (including element names, classes, and IDs in selectors) can contain only the characters [A-Za-z0-9] and ISO 10646 characters 161 and higher, plus the hyphen (-); they cannot start with a hyphen or a digit. They can also contain escaped characters and any ISO 10646 character as a numeric code (see next item). For instance, the identifier "B&W?" may be written as "B&W?" or "B\26 W\3F". "

dann kam:
http://www.w3.org/Style/css2-updates/REC-CSS2-19980512-errata[3]
"[2001-04-03] The underscore character ("_") should be allowed in identifiers. The definitions of the lexical macros "nmstart" and "nmchar" should include it and become, respectively:

nmstart  [a-zA-Z_]|{nonascii}|{escape}
nmchar   [a-zA-Z0-9-_]|{nonascii}|{escape}
"

[3] :)

Grüße
Thomas