Modify ↓
Ticket #11543 (closed bug: fixed)
.has doesn't work on detached elements
| Reported by: | this_is_ori | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 1.8 |
| Component: | traversing | Version: | 1.7.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
After cloning an element, :has correctly filters elements, but .has doesn't --it returns an empty object.
See fiddle: http://jsfiddle.net/orig/hxBmP/
Tested with all versions available on jsfiddle from 1.4.4 onwards On Chrome 18.0.1025.142 And Firefox 10.0.2
Change History
comment:2 Changed 15 months ago by dmethvin
- Priority changed from undecided to low
- Status changed from new to open
- Component changed from unfiled to traversing
- Milestone changed from None to 1.8
comment:3 Changed 13 months ago by Richard Gibson
- Status changed from open to closed
- Resolution set to fixed
Fix #11543: .has should work on detached elements.
Changeset: 590bcab245d969dffc3c61b7679ab4d1a9a26ebd
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

https://github.com/jquery/jquery/pull/723