Unmarshalling around a cloned DOM doesn't explicitly attach root element

Description

Cloning an object with a DOM is optimized by cloning the DOM into a new document and unmarshalling around that DOM, with bindDocument set. But that alone doesn't attach the root of the DOM as the document root element, and a no-op marshall() of the clone won't fix it.

The best fix seems to be to handle it anytime a DOM element is set into an object with bindDocument set, and just ensure that element is set as the root.

Environment

None

Activity

Show:

Scott Cantor December 17, 2010 at 2:39 PM

Closing after release.

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Fix versions

Created August 18, 2010 at 11:01 AM
Updated December 17, 2010 at 2:39 PM
Resolved August 18, 2010 at 11:06 AM