Bug Tracker

Modify

Ticket #8383 (closed bug: invalid)

Opened 2 years ago

Last modified 2 years ago

.closest() doesn't work with > selector

Reported by: wheresrhys@… Owned by:
Priority: undecided Milestone: 1.next
Component: unfiled Version: 1.5
Keywords: Cc:
Blocking: Blocked by:

Description

Test case is here:  http://jsfiddle.net/77Qm9/ Not sure what correct behaviour should be? Maybe ignore the > completely, i.e treat ">selector" as "selector", rather than returning empty jQuery

Change History

comment:1 Changed 2 years ago by anonymous

Or thinking about it more, the use case I have woudl involve treating the context as the top-level parent, so that

$(sel1).closest(>sel2,context)

returns the child of context that matches sel2 and contains sel1

comment:2 Changed 2 years ago by wheresrhys@…

After reading the specification, I've submitted a new ticket http://bugs.jquery.com/ticket/8384 which is more general... so this one can be closed if you like

comment:3 Changed 2 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

Closed per your request.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.