Skip to main content

Bug Tracker

Side navigation

#3922 closed bug (invalid)

Opened January 20, 2009 10:30AM UTC

Closed January 20, 2009 08:00PM UTC

Last modified March 15, 2012 04:30PM UTC

Attribute Selectors Don't Work E[@attr=value]

Reported by: jack_indigo Owned by:
Priority: major Milestone: 1.3.1
Component: core Version: 1.3
Keywords: selector attribute Cc:
Blocked by: Blocking:

There's a 1.3 bug with the selector-by-attribute technique like:

Let's say I have a DIV id=something and inside there's a hyperlink with id=43332, and I want to use the following code to hide it:

$('#something A[@id=43332]').hide();

This used to work with 1.2.6. But not with 1.3. Instead, I get a syntax error that the item cannot be found.

So, I removed the #something out to test, and again, the same error.

I switched back to jQuery 1.2.6 and the problem was resolved.

Note I'm on FF3 on Ubuntu Linux 8.04, whether that has anything to do with this.

Attachments (0)
Change History (3)

Changed January 20, 2009 12:41PM UTC by Thasmo comment:1

The @ sign in the attribute selector syntax is deprecated

in version 1.2.6 and was removed in version 1.3.

Just leave the @ sign ouf of the selector.

Changed January 20, 2009 06:21PM UTC by jack_indigo comment:2

Okay, admin. Didn't realize this. Please close this ticket as "not a bug" then. Thanks.

Changed January 20, 2009 08:00PM UTC by john comment:3

resolution: → invalid
status: newclosed