Escaping a CSS selector
I've escaped a CSS selector like so:
$('#a\\[b\\]-c')
The [
and ]
aren't valid characters, so I escaped them with 2 slashes. Seems to work just fine, but one of my clients is reporting that something isn't working on that page in IE7, and I can't reproduce it.
Is this escaping handled by jQuery in开发者_运维问答ternally, or does it delegate it back to the browser, and maybe their version of the browser isn't handling it correctly?
That's all I can think of....everything else looks fine.
Can't show source unfortunately.
精彩评论