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.
Example: 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 <rep...@bugs.python.org> <http://bugs.python.org/issue16425> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com