New submission from Martin Kugler:

Calling doc.replaceChild(new_child, old_child) with new_child and old_child 
being similar nodes in two different documents results in new_child to be 
removed from its document instead of old_child being removed from doc.

        new_child = get_element_x(doc_a)
        old_child = get_element_x(doc_b)
        parent = get_element_y(doc_b)
        parent.replaceChild(new_child, old_child)

=> new_child will be removed from doc_a. Instead old_child should be removed 
from doc_b.

components: XML
messages: 175057
nosy: Martin.Kugler
priority: normal
severity: normal
status: open
title: minidom replaceChild(new_child, old_child) removes new_child even if in 
another document
type: behavior
versions: Python 2.7

Python tracker <>
Python-bugs-list mailing list

Reply via email to