Bug #15938 Updated: DOMXML: Implement nodeName

From: Date: Sat, 08 Jun 2002 14:47:50 +0000
Subject: Bug #15938 Updated: DOMXML: Implement nodeName
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-9856@lists.php.net to get a copy of this message
ID: 15938 Updated by: bigredlinux@yahoo.com Reported By: jtate@php.net Status: Open Bug Type: Feature/Change Request Operating System: All PHP Version: 4.1.2 Assigned To: jtate New Comment: Why is this still open, this is done? PHP now uses node_name() and node_type() for all DomNodes. node value is more node specific. Previous Comments: ------------------------------------------------------------------------ [2002-03-07 14:48:12] jtate@php.net Assigning it to me. ------------------------------------------------------------------------ [2002-03-07 14:45:05] jtate@php.net The standard DOM implementation at the w3c web page: http://www.w3.org/TR/1999/CR-DOM-Level-2-19991210/core.html#ID-1950641247 lists that each DOM node has a nodeName and nodeValue property along with an attributes list. This needs to be reflected in the PHP DOMXML implementation so as to make iterating through the DOM object easier, and not require large switch statements to, as the w3c paper puts it, "[cast] down to the specific derived interface" to retrieve data. It is partially implemented with the name and tag_name attributes, but it is incomplete and inconsistant. This will require quite a bit of rewrite to implement, but it is worthwhile. I'll work on this, but I'm filing this so that it doesn't get forgotten. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15938&edit=1

« previous php.bugs (#9856) next »