Bug Tracker

Opened 14 years ago

Closed 14 years ago

Last modified 11 years ago

#4131 closed bug (duplicate)

Can't check for non-blank attributes

Reported by: chrisbarr Owned by: john
Priority: major Milestone: 1.3.2
Component: selector Version: 1.3.1
Keywords: attribute notEqual attributeNotEqual blank Cc:
Blocked by: Blocking:


I had an occasion where I needed to find all links of with a certain class which also did not have a blank title attribute. I thought to use the attributeNotEqual filter found here: http://docs.jquery.com/Selectors/attributeNotEqual

I ran something similar to this code:


And firebug returns: uncaught exception: Syntax error, unrecognized expression: title!=]

Demo here: http://jsbin.com/ibupo Editable demo: http://jsbin.com/ibupo/edit

Putting anything inside the quotes works as expected, but apparently you can't find elements without a blank attribute.

Change History (4)

comment:1 Changed 14 years ago by chrisbarr

So.... the code sample I wrote above did not format correctly in here. Please check the example I linked to. http://jsbin.com/ibupo/edit

comment:2 Changed 14 years ago by dmethvin

Chris, does it look like this bug is the same as yours? If so it should be fixed in the next release.


comment:3 Changed 14 years ago by chrisbarr

Yes, that appears to be the exact same problem. Sorry about the duplicate ticket, but I'm glad to see it's been fixed!

comment:4 Changed 14 years ago by john

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.