Bug Tracker

Opened 7 years ago

Closed 7 years ago

#12186 closed bug (invalid)

.has() doesn't work on detached nodes

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

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

comment:1 Changed 7 years ago by sindresorhus

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

See #11543

Note: See TracTickets for help on using tickets.