Issue 1494: DOM-Documentation should mention that appendChild() removes the child it appends (original) (raw)

Issue1494

Created on 2007-11-24 16:09 by dennda, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg57809 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2007-11-24 17:29
Can you propose a specific wording?
msg57811 - (view) Author: Christopher Denter (dennda) Date: 2007-11-24 18:21
"Add a new child node to this node at the end of the list of children, returning newChild. The original child node is removed after appending the child to the new node." maybe? It took me quite some time to figure that out because I thought "it's not popAndAppend()", so having a hint in the documentation would be nice. (This is the first time I use this bugtracker. I hope this message will be displayed correctly.)
msg57812 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2007-11-24 18:42
Thanks. I committed something like that as 59176. Notice that the precise semantics of all operations is specified in the DOM itself, http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html which says Adds the node newChild to the end of the list of children of this node. If the newChild is already in the tree, it is first removed.
History
Date User Action Args
2022-04-11 14:56:28 admin set github: 45835
2007-11-24 18:42:56 loewis set status: open -> closedresolution: fixedmessages: +
2007-11-24 18:21:06 dennda set messages: +
2007-11-24 17:29:22 loewis set nosy: + loewismessages: +
2007-11-24 16:09:51 dennda create