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: donny.viszneki@gmail.com 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/

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

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

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

resolution: → invalid
status: newclosed

Thanks rtpmatt

Here is a working example:

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

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

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