Skip to main content

Bug Tracker

Side navigation

#3074 closed bug (invalid)

Opened June 23, 2008 01:58PM UTC

Closed June 24, 2008 07:09PM UTC

Last modified June 01, 2009 05:21PM UTC

clone(true) does not appear to maintain data() within nodes

Reported by: booshtukka Owned by:
Priority: major Milestone: 1.3
Component: core Version: 1.2.6
Keywords: Cc:
Blocked by: Blocking:
Description

When cloning elements, and trying to access data within those elements, it is no longer available.

A

Attachments (0)
Change History (2)

Changed June 24, 2008 07:09PM UTC by flesler comment:1

resolution: → invalid
status: newclosed

By data() you mean jQuery.data() ?

If so, that is expected and actually forced.

If it wasn't jQuery.data(), do reopen and add some more detail.

Changed June 01, 2009 05:21PM UTC by mikecapp comment:2

I think he meant Bug #4191 - data attached via foo.data("key", value) is lost on clone(true). I've attached a demo there.