Hi, the spec says: 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".
http://www.w3.org/TR/REC-CSS2/syndata.html#value-def-identifier so this should be the base. Interestingly enough, an underscore is commonly used, but not covered by the css spec. The underscore comes into the game by html spec: ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods ("."). http://www.w3.org/TR/REC-html40/types.html#type-name So the issue arises from the css spec (which covers the css selectors) being more restrictive than the html spec, which allows periods for ids (class is cdata, meaning almost everything is allowed) So I guess the question is: which relvante Implementations in Browsers allow which characters in ID and CLASS attributes .:Fabian PS: I guess the period is handled differently because it acts as keytoken for classnames, similar to the hash which is the keytoken for ids -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thierry Sent: Dienstag, 9. Oktober 2007 13:56 To: Ruby on Rails: Spinoffs Subject: [Rails-spinoffs] problem with $$ function dot in id name makes it fail #comment-1.01 span.votes a . in the id name gives it problems according to the specs there is nothing wrong with having a dot in id or class names im using 1.5, has this been fixed recently? _______________________________________________________________________ Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 3 Monate kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=022220 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
