Re: cvs: phpdoc /en/reference/domxml/functions DomNode-replace-child.xml
| From: | Gabor Hojtsy | Date: | Thu, 15 Aug 2002 11:21:43 +0000 |
| Subject: | Re: cvs: phpdoc /en/reference/domxml/functions DomNode-replace-child.xml | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969348110@lists.php.net to get a copy of this message | ||
>
<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>
Please do not use tabs for indentation. There should be no tabs
in phpdoc XML documents...
Goba