Nice helper for CSS rules, the only way I know of targeting IDs
containing spaces.
With CSS selectors however one can still use spaces when matching
attributes like IDs:
document.querySelectorAll('[id="123 foo bar lolwat"]');
--
Diego
On Wed, Sep 21, 2011 at 9:46 PM, Mathias Bynens <[email protected]> wrote:
> I recently made a tool that escapes even the funkiest CSS selectors for use
> in CSS and/or JavaScript: http://mothereffingcssescapes.com/
> E.g. http://mothereffingcssescapes.com/#123%20foo%20bar%20lolwat
>
> --
> 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]