rraguso / ajaxslt

Automatically exported from code.google.com/p/ajaxslt
Other
0 stars 0 forks source link

Need to set the ownerDocument in DOM manipulators #29

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Produce two XDocument instances
2. Clone (make a copy of) a node from one document
3. Invoke appendChild, replaceChild or insertBefore to place the clone in 
the second document.

What is the expected output? 

When the cloned node is placed in the new document, its ownerDocument 
should be the new document.

What do you see instead?

The ownerDocument is still the old document.

What version of the product are you using? 

Up to at least r61

On what operating system?

All.

Please provide any additional information below.

Some XPath evaluations, e.g. absolute ones, request the ownerDocument of a 
node, at which point you end up in the wrong document.

Original issue reported on code.google.com by John.Boyer.PhD@gmail.com on 28 Feb 2009 at 11:24