chregu Tue Mar 4 08:38:39 2003 EDT
Modified files:
/php4/ext/domxml php_domxml.c
Log:
MFB (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.236 php4/ext/domxml/php_domxml.c:1.237
--- php4/ext/domxml/php_domxml.c:1.236 Thu Feb 13 16:41:00 2003
+++ php4/ext/domxml/php_domxml.c Tue Mar 4 08:38:38 2003
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_domxml.c,v 1.236 2003/02/13 21:41:00 helly Exp $ */
+/* $Id: php_domxml.c,v 1.237 2003/03/04 13:38:38 chregu Exp $ */
/* TODO
* - Support Notation Nodes
@@ -2329,8 +2329,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);
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php