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);
        }
        



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to