Ticket #11438 (closed bug: invalid)
Non-persistence of events when reappending dom nodes to their original parent
|Reported by:||wheresrhys||Owned by:|
I'm not sure if this is a bug or intended behaviour, but when using .html() to reappend elements elements to their original parent then any jQuery events for these elements are lost. This desn't happen when appending the elements to a different node using html() or when using append() to append the elements to the existing parent.
Obviously, appending an element to its existing parent using html() is not something you'd normally do on purpose, but could crop up when iterating over a large number of nodes which may/may not have been moved by other processes in your app.
As html() is only documented as accepting strings I reckon this is probably a won't fix, but thought I'd bring it up just in case.