ID:               17638
 Updated by:       [EMAIL PROTECTED]
 Reported By:      bigredlinux at yahoo dot com
-Status:           Suspended
+Status:           Closed
 Bug Type:         DOM XML related
 Operating System: linux 2.4.19
 PHP Version:      4.2.1
 New Comment:

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2002-07-01 10:05:03] [EMAIL PROTECTED]

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

------------------------------------------------------------------------

[2002-06-07 06:26:58] bigredlinux at yahoo dot 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

Reply via email to