note 43209 added to function.dom-domnode-replacechild
| From: | mbm at interflow dot dk | Date: | Mon, 14 Jun 2004 11:11:59 +0000 |
| Subject: | note 43209 added to function.dom-domnode-replacechild | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-71034@lists.php.net to get a copy of this message | ||
When replaceing a node remember the new node *must* be a member of the document, either by being
created inside the document with document->createNode or by importing it.
Also note that when replaceing a node any elementlist the old node was a member off will change its
length and index since the node is no longer there, that had me confused for some time.
----
Manual Page -- http://www.php.net/manual/en/function.dom-domnode-replacechild.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+43209
Delete -- http://master.php.net/manage/user-notes.php?action=delete+43209&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+43209&report=yes
Search -- http://master.php.net/manage/user-notes.php