[issue16425] minidom replaceChild(new_child, old_child) removes new_child even if in another document

2019-04-27 Thread Stefan Behnel


Stefan Behnel  added the comment:

Since "new_child" is inserted at least into a new place, it needs to be removed 
from its old place as well, so that part seems correct. The problem description 
does not make it clear whether or not "old_child" is handled correctly, but 
looking at the code (and lacking a complete example that shows an error), I 
cannot see anything wrong there.

I'll close this ticket since it has been idle for years and it is unclear to me 
from the description whether it is an actual misbehaviour or a misunderstanding 
of correct behaviour.

--
nosy: +scoder
resolution:  -> works for me
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16425] minidom replaceChild(new_child, old_child) removes new_child even if in another document

2019-04-26 Thread Mark Lawrence


Change by Mark Lawrence :


--
nosy:  -BreamoreBoy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16425] minidom replaceChild(new_child, old_child) removes new_child even if in another document

2014-10-02 Thread Mark Lawrence

Mark Lawrence added the comment:

Who is best placed to look at this as nobody is listed on the experts index?

--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16425
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16425] minidom replaceChild(new_child, old_child) removes new_child even if in another document

2013-10-31 Thread Eli Bendersky

Changes by Eli Bendersky eli...@gmail.com:


--
nosy:  -eli.bendersky

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16425
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16425] minidom replaceChild(new_child, old_child) removes new_child even if in another document

2013-10-14 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


--
nosy: +eli.bendersky

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16425
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16425] minidom replaceChild(new_child, old_child) removes new_child even if in another document

2012-11-07 Thread Martin Kugler

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