Added notice about changed behaviour in php 4.3

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@92145 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Christian Stocker 2002-08-15 10:22:22 +00:00
parent 65334899b7
commit 4fea79ed7a

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.2 $ -->
<!-- $Revision: 1.3 $ -->
<refentry id='function.DomNode-replace-child'>
<refnamediv>
<refname>DomNode->replace_child</refname>
@ -15,11 +15,19 @@
<methodparam><type>object</type><parameter>newnode</parameter></methodparam>
</methodsynopsis>
<para>
This function replaces the child <parameter>oldnode</parameter>
(PHP 4.2) This function replaces the child <parameter>oldnode</parameter>
with the passed new node. If the new node is already a child it
will not be added a second time. If the old node cannot be found
the function returns false. If the replacement succeds the old node
is returned.
</para>
<para>
(PHP 4.3) This function replaces the child <parameter>oldnode</parameter>
with the passed <parameter>newnode</parameter>, even if the new node already
is a child of the DomNode. If <parameter>newnode</parameter> was already
inserted in the document it is first unlinked from its existing context.
If the old node cannot be found the function returns false. If the replacement
succeds the old node is returned. (This behaviour is according to the W3C specs).
</para>
<para>
See also <function>DomNode_append_child</function>