Issue16425
Created on 2012-11-07 09:05 by Martin.Kugler, last changed 2022-04-11 14:57 by admin. This issue is now closed.
| Messages (3) | |||
|---|---|---|---|
| msg175057 - (view) | Author: Martin Kugler (Martin.Kugler) | Date: 2012-11-07 09:05 | |
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.
|
|||
| msg228271 - (view) | Author: Mark Lawrence (BreamoreBoy) * | Date: 2014-10-02 22:31 | |
Who is best placed to look at this as nobody is listed on the experts index? |
|||
| msg340979 - (view) | Author: Stefan Behnel (scoder) * ![]() |
Date: 2019-04-27 11:00 | |
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. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:57:38 | admin | set | github: 60629 |
| 2019-04-27 11:00:09 | scoder | set | status: open -> closed nosy:
+ scoder resolution: works for me |
| 2019-04-26 18:15:29 | BreamoreBoy | set | nosy:
- BreamoreBoy |
| 2014-10-02 22:31:15 | BreamoreBoy | set | nosy:
+ BreamoreBoy messages:
+ msg228271 |
| 2013-10-31 12:56:46 | eli.bendersky | set | nosy:
- eli.bendersky |
| 2013-10-14 14:16:11 | georg.brandl | set | nosy:
+ eli.bendersky |
| 2012-11-07 09:05:50 | Martin.Kugler | create | |
