Bug Tracker

Modify

Ticket #12186 (closed bug: invalid)

Opened 10 months ago

Last modified 9 months ago

.has() doesn't work on detached nodes

Reported by: jaredr@… Owned by:
Priority: low Milestone: None
Component: traversing Version: 1.7.2
Keywords: Cc:
Blocking: Blocked by:

Description

$('<ul><li><p></p></li></ul>').find('li').has('p') does not find the 'li'.

See  http://jsfiddle.net/wymG9/2/

This appears to be working in 1.8, but I can't find a closed bug for it, so I'm not sure if it'll 'stay' fixed.

Change History

comment:1 Changed 9 months ago by sindresorhus

  • Priority changed from undecided to low
  • Resolution set to invalid
  • Status changed from new to closed
  • Component changed from unfiled to traversing

See #11543

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.