Bug Tracker

Opened 10 years ago

Closed 10 years ago

#13882 closed bug (fixed)

:contains("") matches nothing since jQuery 1.8

Reported by: [email protected] Owned by: timmywil
Priority: blocker Milestone: None
Component: selector Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:


http://jsfiddle.net/ThiefMaster/8MC2E/ http://jsfiddle.net/ThiefMaster/8MC2E/1 http://jsfiddle.net/ThiefMaster/8MC2E/2

As you can see, in jQuery 1.7 :contains("") matched anything - which makes sense since every element contains the empty string. However, since jQuery 1.8 this stopped working.

Change History (2)

comment:1 Changed 10 years ago by timmywil

Component: unfiledselector
Owner: set to timmywil
Priority: undecidedblocker
Status: newassigned

Yea, it's actually checking for quotes. This could affect other compilation.

comment:2 Changed 10 years ago by Timmy Willison

Resolution: fixed
Status: assignedclosed

Update Sizzle: empty string arguments in pseudos. Fixes #13882.

Changeset: 5dda0687f19c29976c4f4989ebc981b9e7231a3f

Note: See TracTickets for help on using tickets.