Skip to main content

Bug Tracker

Side navigation

#14114 closed bug (notabug)

Opened July 08, 2013 06:45PM UTC

Closed July 08, 2013 06:58PM UTC

Last modified July 08, 2013 07:11PM UTC

jQuery.data is missing on a removed element in a MutationObserver

Reported by: ry@rygine.com Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 2.0.3
Keywords: Cc:
Blocked by: Blocking:
Description

This may be the intended effect, but I recently had a use-case where I stored data on a element, and later wanted to reference that data (via MutationObserver) when the element was removed from the DOM.

Example case: http://jsfiddle.net/JN5ed/

Attachments (0)
Change History (2)

Changed July 08, 2013 06:58PM UTC by timmywil comment:1

resolution: → notabug
status: newclosed

Right, this is intended behavior. Data is cleared when elements are removed.

Changed July 08, 2013 07:11PM UTC by scottgonzalez comment:2

You may want to use .detach(). If you need more help, please use the forums or Stack Overflow.