Bug Tracker

Opened 11 years ago

Closed 11 years ago

#12186 closed bug (invalid)

.has() doesn't work on detached nodes

Reported by: [email protected] Owned by:
Priority: low Milestone: None
Component: traversing Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:


$('<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 (1)

comment:1 Changed 11 years ago by sindresorhus

Component: unfiledtraversing
Priority: undecidedlow
Resolution: invalid
Status: newclosed

See #11543

Note: See TracTickets for help on using tickets.