Bug Tracker

Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#3074 closed bug (invalid)

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:


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


Change History (2)

comment:1 Changed 15 years ago by flesler

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.

comment:2 Changed 14 years ago by mikecapp

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

Note: See TracTickets for help on using tickets.