Bug #17318 Updated: dump_node() and node_value() don't work for attribute nodes

From: Date: Fri, 07 Jun 2002 10:40:35 +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-9736@lists.php.net to get a copy of this message
ID: 17318 Updated by: bigredlinux@yahoo.com Reported By: lrargerich@yahoo.com Status: Open Bug Type: DOM XML related Operating System: Windows PHP Version: 4.2.1 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#9736) next »