[jQuery] Re: Undocumented move/copy behavior of append() et al.

2008-12-29 Thread Markus Gritsch
Perfect :) On Sun, Dec 28, 2008 at 11:45 PM, Dave Methvin wrote: > > Here's what I came up with, does it make sense? > -- > Content > > Most jQuery methods that accept "content" will accept one or more > arguments of any of the following: > > * A DOM node element; > * An array of

[jQuery] Re: Undocumented move/copy behavior of append() et al.

2008-12-27 Thread Markus Gritsch
On Sat, Dec 27, 2008 at 6:40 AM, Dave Methvin wrote: > > Well, like I said back then, jQuery *must* append clones of the nodes > in the case where you are appending to multiple targets. Agreed. > That only > leaves a question about the one-target-node case. If the default was > to append a clon

[jQuery] Undocumented move/copy behavior of append() et al.

2008-12-26 Thread Markus Gritsch
Hi, At [1] and [2] I read about the different behavior of append() (and similar functions) depending on whether there are many targets (-> copy) or there is just one target (-> move). For generated pages where the target count is not known, this behavior seems to be a source of troubles. Maybe