php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #15938 DOMXML: Implement nodeName
Submitted: 2002-03-07 14:45 UTC Modified: 2002-06-08 11:50 UTC
From: jtate@php.net Assigned: jtate (profile)
Status: Closed Package: Feature/Change Request
PHP Version: 4.1.2 OS: All
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jtate@php.net
New email:
PHP Version: OS:

 

 [2002-03-07 14:45 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-07 14:48 UTC] jtate@php.net
Assigning it to me.
 [2002-06-08 10:47 UTC] bigredlinux at yahoo dot com
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.
 [2002-06-08 11:50 UTC] jtate@php.net
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php

Oops.  Should have marked this fixed long ago.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 06:01:34 2024 UTC