note 110753 added to domnode.clonenode
| From: | frame at dynamiccreated dot de | Date: | Sun, 02 Dec 2012 02:19:50 +0000 |
| Subject: | note 110753 added to domnode.clonenode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-192246@lists.php.net to get a copy of this message | ||
Remeber that DOMNode always needs a reference to a parent node or DOMDocument.
For example, if you try to clone a node - copy all children - and overwrite or delete the variable
which holds the cloned node - all children will loose any reference and getting invalid.
This will cause a nice message like "Couldn't... node no longer exists" if you have
luck. In most cases PHP only gives you the poor information "Couldn't fetch DOM[...]"
which makes hard to find out whats going on, depending on the current operation.
----
Server IP: 213.172.110.14
Probable Submitter: 84.112.102.108
----
Manual Page -- http://www.php.net/manual/en/domnode.clonenode.php
Edit -- https://master.php.net/note/edit/110753
Del: integrated -- https://master.php.net/note/delete/110753/integrated
Del: useless -- https://master.php.net/note/delete/110753/useless
Del: bad code -- https://master.php.net/note/delete/110753/bad+code
Del: spam -- https://master.php.net/note/delete/110753/spam
Del: non-english -- https://master.php.net/note/delete/110753/non-english
Del: in docs -- https://master.php.net/note/delete/110753/in+docs
Del: other reasons-- https://master.php.net/note/delete/110753
Reject -- https://master.php.net/note/reject/110753
Search -- https://master.php.net/manage/user-notes.php