cvs: php4(PHP_4_3) /ext/domxml php_domxml.c
| From: | Christian Stocker | Date: | Tue, 04 Mar 2003 13:29:19 +0000 |
| Subject: | cvs: php4(PHP_4_3) /ext/domxml php_domxml.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-19347@lists.php.net to get a copy of this message | ||
chregu Tue Mar 4 08:29:19 2003 EDT
Modified files: (Branch: PHP_4_3)
/php4/ext/domxml php_domxml.c
Log:
make it really W3C compatible (unlink node, when in tree...)
Index: php4/ext/domxml/php_domxml.c
diff -u php4/ext/domxml/php_domxml.c:1.218.2.8 php4/ext/domxml/php_domxml.c:1.218.2.9
--- php4/ext/domxml/php_domxml.c:1.218.2.8 Fri Jan 10 13:05:02 2003
+++ php4/ext/domxml/php_domxml.c Tue Mar 4 08:29:18 2003
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_domxml.c,v 1.218.2.8 2003/01/10 18:05:02 chregu Exp $ */
+/* $Id: php_domxml.c,v 1.218.2.9 2003/03/04 13:29:18 chregu Exp $ */
/* TODO
* - Support Notation Nodes
@@ -2308,8 +2308,8 @@
RETURN_FALSE;
}
- /* first unlink node, if child is already a child of parent */
- if (child->parent == parent){
+ /* first unlink node, if child is already in the tree */
+ if (child->doc == parent->doc && child->parent != NULL){
xmlUnlinkNode(child);
}