Bug #17638: set_attribute_node doesn't work

From: Date: Fri, 07 Jun 2002 10:26:58 +0000
Subject: Bug #17638: set_attribute_node doesn't work
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-9732@lists.php.net to get a copy of this message
From: bigredlinux@yahoo.com Operating system: linux 2.4.19 PHP version: 4.2.1 PHP Bug Type: DOM XML related Bug description: set_attribute_node doesn't work The function set_attribute_node() does not work. I have tried to retrieve an attribute from elsewhere in the document and then set the attribute in a new element node...and finding that perhaps I had to clone the node, I tried that as well with no luck. Then I just tried to set_attribute_node() and passing it the result of create_attribute() and that didn't work. So no test cases can show that this function actually adds an attribute_node to the tree. Since append_child() is restricted for appending attributes, we are stuck with using only set_attribute(). Here is the test case: $domelement->set_attribute_node($xml->create_attribute('foo', 'bar')); result is that the tree is not affected. -- Edit bug report at http://bugs.php.net/?id=17638&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17638&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17638&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17638&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17638&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17638&r=support Expected behavior: http://bugs.php.net/fix.php?id=17638&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17638&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17638&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17638&r=globals

« previous php.bugs (#9732) next »