Bug Tracker

Opened 14 years ago

Closed 14 years ago

#3713 closed enhancement (fixed)

DOM manipulations on elements not in the DOM

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


The following works:


The following fails:


The former works because jQuery.clean wraps the created elements in a div, but the div is never removed. Wrap, insertBefore, etc. should probably be updated to work on elements not in the DOM.

If you think it's necessary, you might want to create another ticket to have jQuery.clean remove the extra wrappers it creates.

Change History (3)

comment:1 Changed 14 years ago by john

Cc: john added
Owner: set to john

Now it seems like this should be pretty easy. When doing the wrapping just skip the "append to parentNode" step. The element will still be disconnected from the DOM - but that's ok since that's what the intent was.

comment:2 Changed 14 years ago by dmethvin

See also #3940 .

comment:3 Changed 14 years ago by john

Resolution: fixed
Status: newclosed

This was fixed in 1.3, actually.

Note: See TracTickets for help on using tickets.