Skip to main content

Bug Tracker

Side navigation

#11543 closed bug (fixed)

Opened April 02, 2012 10:00AM UTC

Closed May 16, 2012 06:04PM UTC

.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:
Blocked by: Blocking:
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

Attachments (0)
Change History (3)

Changed April 02, 2012 05:14PM UTC by gibson042 comment:1

Changed April 04, 2012 12:34AM UTC by dmethvin comment:2

component: unfiledtraversing
milestone: None1.8
priority: undecidedlow
status: newopen

Changed May 16, 2012 06:04PM UTC by Richard Gibson comment:3

resolution: → fixed
status: openclosed

Fix #11543: .has should work on detached elements.

Changeset: 590bcab245d969dffc3c61b7679ab4d1a9a26ebd