>>As for ANY CSS property value, that is more than one word you should use quotes, like font names. That this would apply to selectors too.
Thanks Poetro, So this presents an interesting dilemma, it really is more of a code design question whether I should go above and beyond the call of duty and except identifiers with white space in them, it would actually be easier for me to do so, but would this be lazy? I think I'm good for now, but if anybody is really passionate about the philosophy of arbitrarily implementing the CSS spec as a mode of selecting elements in javascript, I'd be interested to hear their thoughts. -Nate On Tue, Sep 6, 2011 at 9:08 AM, Poetro <[email protected]> wrote: > Sorry, messed the the order > > >> Attribute values must be CSS identifiers or strings. > > > > See the specification for identifiers > > http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier > > > >> In CSS, identifiers (including element names, classes, and IDs in > selectors) > >> can contain only the characters [a-zA-Z0-9] and ISO 10646 characters > U+00A0 > >> and higher, plus the hyphen (-) and the underscore (_); they cannot > start with a > >> digit, two hyphens, or a hyphen followed by a digit. > > -- > Poetro > > -- > To view archived discussions from the original JSMentors Mailman list: > http://www.mail-archive.com/[email protected]/ > > To search via a non-Google archive, visit here: > http://www.mail-archive.com/[email protected]/ > > To unsubscribe from this group, send email to > [email protected] > -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
