Skip to main content

Bug Tracker

Side navigation

#7609 closed bug (invalid)

Opened November 23, 2010 03:46PM UTC

Closed November 23, 2010 03:57PM UTC

Last modified November 23, 2010 04:42PM UTC

attribute selectors can't contain colons

Reported by: Owned by:
Priority: undecided Milestone: 1.5
Component: unfiled Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:

$('[foo:bar]') doesn't work

Attachments (0)
Change History (3)

Changed November 23, 2010 03:55PM UTC by rtpmatt comment:1

If you wish to use any of the meta-characters (#;&,.+*~':"!^$[]()=>|/@ ) as a literal part of a name, you must escape the character with two backslashes: \\\\. For example, if you have an an element with id="", you can use the selector $("#foo\\\\.bar").

Changed November 23, 2010 03:57PM UTC by rwaldron comment:2

resolution: → invalid
status: newclosed

Thanks rtpmatt

Here is a working example:

Changed November 23, 2010 04:42PM UTC by anonymous comment:3

Ahh, I see the problem. This doesn't work in 1.4.2!