Re: [PHP-XML-DEV] Troubles with importing a node from another DOMDocument
[email protected] (Rob Richards) Thu, 17 Jul 2008 10:31:51 -0400
| Newsgroups | php.xml.dev |
|---|---|
| Message-ID | <[email protected]> |
Stanislav Sazonov wrote: > I think it is conceptually wrong. If i wanna clone a node with its owner i > would use cloneNode() method. Operator clone() should make _independent_ > objects instead, thus should behave like importNode(). > >> using the clone keyword is the same as using the cloneNode() method >> doing a deep copy on the node in question. >> >> Rob > > I disagree there. Clone means make a duplicate copy, not a partial. A duplicate of a node includes the ownerDocument. Now if the keyword were semiclone or something I might agree with you. Rob