php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #23313 Missing DomNode->get_namespace()
Submitted: 2003-04-23 06:56 UTC Modified: 2011-01-11 18:58 UTC
From: markus dot pfefferle at web dot de Assigned:
Status: Wont fix Package: DOM XML related
PHP Version: * OS: *
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2003-04-23 06:56 UTC] markus dot pfefferle at web dot de
It's nice that you can create nodes with namespaces, using DomDocument->create_element_ns() and DomNode->add_namespaces(), but for actually reading them, there is no counterpart method (other than prefix(), which is not very safe).

My specific problem is that I want to clone a node without its child nodes, but can't use DomNode->clone_node(false), since this does not copy any namespace declarations and attributes either.

Adding a DomNode->get_namespace() in future versions would be greatly appreciated.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-01 20:42 UTC] jani@php.net
-Summary: DOMXML: Missing DomNode->get_namespace() +Summary: Missing DomNode->get_namespace() -Package: Feature/Change Request +Package: DOM XML related -Operating System: Windows 2000 +Operating System: * -PHP Version: 4.3.1 +PHP Version: *
 [2011-01-11 18:58 UTC] rrichards@php.net
-Status: Open +Status: Wont fix
 [2011-01-11 18:58 UTC] rrichards@php.net
We are sorry, but we can not support PHP 4 related problems anymore.
Momentum is gathering for PHP 6, and we think supporting PHP 4 will
lead to a waste of resources which we want to put into getting PHP 6
ready.


 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Apr 22 20:01:25 2019 UTC