Bug Tracker

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#7609 closed bug (invalid)

attribute selectors can't contain colons

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


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


Change History (3)

comment:1 Changed 12 years ago by rtpmatt

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="foo.bar", you can use the selector $("#foo


comment:2 Changed 12 years ago by Rick Waldron

Resolution: invalid
Status: newclosed

Thanks rtpmatt

Here is a working example:


comment:3 Changed 12 years ago by anonymous

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

Note: See TracTickets for help on using tickets.