Bug #17638 Updated: set_attribute_node doesn't work
| From: | chregu@php.net | Date: | Mon, 01 Jul 2002 14:05:03 +0000 |
| Subject: | Bug #17638 Updated: set_attribute_node doesn't work | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-12651@lists.php.net to get a copy of this message | ||
ID: 17638
Updated by: chregu@php.net
Reported By: bigredlinux@yahoo.com
-Status: Open
+Status: Suspended
Bug Type: DOM XML related
Operating System: linux 2.4.19
PHP Version: 4.2.1
New Comment:
The function seems to be not really implemented, therefore I added
DOM_NOT_IMPLEMENTED() macro there for giving at least a warning.
Someone will implement it later :)
chregu
Previous Comments:
------------------------------------------------------------------------
[2002-06-07 06:26:58] bigredlinux@yahoo.com
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 this bug report at http://bugs.php.net/?id=17638&edit=1