Bug Tracker

Opened 7 years ago

Closed 7 years ago

#13882 closed bug (fixed)

:contains("") matches nothing since jQuery 1.8

Reported by: adrian@… Owned by: timmywil
Priority: blocker Milestone: None
Component: selector Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:

Description

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 7 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 7 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.