From a2f5757ad074d8b345afd4f5e33c840a224d2c0c Mon Sep 17 00:00:00 2001 From: Christian Stocker Date: Thu, 15 Aug 2002 10:29:56 +0000 Subject: [PATCH] comment about changed behaviout in 4.3 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@92147 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/domxml/functions/DomNode-replace-node.xml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/reference/domxml/functions/DomNode-replace-node.xml b/reference/domxml/functions/DomNode-replace-node.xml index e442278740..f5249cafe2 100644 --- a/reference/domxml/functions/DomNode-replace-node.xml +++ b/reference/domxml/functions/DomNode-replace-node.xml @@ -1,5 +1,5 @@ - + @@ -15,7 +15,7 @@ objectnewnode - This function replaces an existing node with the passed + (PHP 4.2) This function replaces an existing node with the passed new node. Before the replacement newnode is copied if it has a parent to make sure a node which is @@ -25,6 +25,12 @@ DomNode_first_child, DomNode_child_nodes etc.. + + (PHP 4.3) This function replaces an existing node with the passed new node. It is not + copied anymore. If newnode was already inserted in the document + it is first unlinked from its existing context. If the replacement succeds the old + node is returned. + See also DomNode_append_child