> For generated pages where the target count is not known, this
> behavior seems to be a source of troubles.

Well, like I said back then, jQuery *must* append clones of the nodes
in the case where you are appending to multiple targets. That only
leaves a question about the one-target-node case. If the default was
to append a clone in that situation, it wouldn't be possible to select
nodes and move it to a new location in the DOM tree!

> Maybe a method-parameter which explicitly specifies
> whether the source should be copied or moved
> would have been preferable.

If you need the always-clone behavior you can just throw a .clone()
into the chain before the append.

> At least the current behaviour should be explicitly mentioned in
> the API documentation of append() [3] and the related methods.

That would be a good idea. Basically all the methods that insert
elements documented here are affected:

http://docs.jquery.com/Manipulation

So would the best thing to do be to have some single page that
describes the behavior, and reference it on that page?

Reply via email to