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>
--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php