Bug #17318 Updated: dump_node() and node_value() don't work for attribute nodes
| From: | jtate@php.net | Date: | Fri, 07 Jun 2002 15:02:17 +0000 |
| Subject: | Bug #17318 Updated: dump_node() and node_value() don't work for attribute nodes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-9762@lists.php.net to get a copy of this message | ||
ID: 17318
Updated by: jtate@php.net
Reported By: lrargerich@yahoo.com
-Status: Open
+Status: Closed
Bug Type: DOM XML related
Operating System: Windows
PHP Version: 4.2.1
New Comment:
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version 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.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2002-06-07 06:40:35] bigredlinux@yahoo.com
I temporary work around for node_value() is just to use the value()
function (forget the node_ part). Again, keep your eyes peeled for
when it is fixed though.
As of version 4.2.1 of php with domxml, the dump_node for attribute
returns
foo="bar"
for the attribute in the tree as
<doc foo="bar">
which is what would be expected. This bug is closed if the node_ part
is just added to the php_alias function.
------------------------------------------------------------------------
[2002-05-23 03:28:42] chregu@php.net
Mmmh, what would you expect from a Attribute-Node-Dump?
'attname="attvalue"'? Or just nothing to be returned? The first would
make more sense IMHO...
The node_value() issue will be fixed soon.
------------------------------------------------------------------------
[2002-05-20 15:31:11] lrargerich@yahoo.com
If you have a DOM node that is an attribute node
node_value() function doesn't return the attribute
value.
The dump_node() is also returning something incorrect
for an attrbute node <attname>attvalue</attname>
Luis
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17318&edit=1