|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-07-01 10:05 UTC] chregu@php.net
[2003-04-03 04:22 UTC] chregu@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 08:00:01 2025 UTC |
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.