Jorg Heymans wrote:
Say i create an element "A" using getSVGDocument.createElementNS() and then append a bunch of other nodes "B" (from a different document) to this element.
You shouldn't be allowed to do this. If "A" and "B" have different ownerDocuments then an exception should be raised when you append nodes from "B". I don't think this is the real issue in your other post as I suspect that when you give the element from "A" to the DOMResult it uses the ownerDocument of A as a factor to create the new nodes.
Now i want to append some parts of "B" to the main document, is it necessary to import the parts into the main document first or are they considered imported already because they hang off an element that was created from the main document.
Any time nodes move from one document to another (in DOM 2) they must be imported and cloned.
I am trying to avoid having to import (and thus clone) the nodes for performance reasons, hence this setup.
I suspect that you are going through a lot of work for nothing. In my experience the clone time is a very small % of the total time so eliminating it saves you almost nothing.
sorry for continuously replying to my own posts, i am just trying to a deeper understanding of something obviously not so trivial.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
