Bug Tracker

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#7609 closed bug (invalid)

attribute selectors can't contain colons

Reported by: donny.viszneki@… Owned by:
Priority: undecided Milestone: 1.5
Component: unfiled Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:

Description

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

http://jsfiddle.net/wsYPR/

Change History (3)

comment:1 Changed 9 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
.bar").

http://api.jquery.com/category/selectors/

comment:2 Changed 9 years ago by Rick Waldron

Resolution: invalid
Status: newclosed

Thanks rtpmatt

Here is a working example:

http://jsfiddle.net/rwaldron/wsYPR/2/

comment:3 Changed 9 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.