cvs: phpdoc /en/reference/domxml/functions DomNode-replace-node.xml

From: Date: Thu, 15 Aug 2002 10:29:56 +0000
Subject: cvs: phpdoc /en/reference/domxml/functions DomNode-replace-node.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969348109@lists.php.net to get a copy of this message
chregu Thu Aug 15 06:29:56 2002 EDT Modified files: /phpdoc/en/reference/domxml/functions DomNode-replace-node.xml Log: comment about changed behaviout in 4.3 Index: phpdoc/en/reference/domxml/functions/DomNode-replace-node.xml diff -u phpdoc/en/reference/domxml/functions/DomNode-replace-node.xml:1.5 phpdoc/en/reference/domxml/functions/DomNode-replace-node.xml:1.6 --- phpdoc/en/reference/domxml/functions/DomNode-replace-node.xml:1.5 Tue Apr 23 19:12:57 2002 +++ phpdoc/en/reference/domxml/functions/DomNode-replace-node.xml Thu Aug 15 06:29:56 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.39 --> <refentry id='function.DomNode-replace-node'> <refnamediv> @@ -15,7 +15,7 @@ <methodparam><type>object</type><parameter>newnode</parameter></methodparam> </methodsynopsis> <para> - 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 <parameter>newnode</parameter> is copied if it has a parent to make sure a node which is @@ -25,6 +25,12 @@ <function>DomNode_first_child</function>, <function>DomNode_child_nodes</function> etc.. </para> + <para> + (PHP 4.3) This function replaces an existing node with the passed new node. It is not + copied anymore. If <parameter>newnode</parameter> was already inserted in the document + it is first unlinked from its existing context. If the replacement succeds the old + node is returned. + </para> <para> See also <function>DomNode_append_child</function> </para>

« previous php.doc (#969348109) next »