Req #63410 [Opn->Csd]: DOMElement is missing method for fetching all inscope namespaces
| From: | nielsdos@php.net | Date: | Thu, 04 Jul 2024 12:39:35 +0000 |
| Subject: | Req #63410 [Opn->Csd]: DOMElement is missing method for fetching all inscope namespaces | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-247225@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63410&edit=1
ID: 63410
Updated by: nielsdos@php.net
Reported by: jirka at kosek dot cz
Summary: DOMElement is missing method for fetching all
inscope namespaces
-Status: Open
+Status: Closed
Type: Feature/Change Request
Package: DOM XML related
PHP Version: 5.4.8
-Assigned To:
+Assigned To: nielsdos
Block user comment: N
Private report: N
New Comment:
The fix for this bug has been committed.
If you are still experiencing this bug, try to check out latest source from https://github.com/php/php-src and re-test.
Thank you for the report, and for helping us make PHP better.
This functionality is included in the new DOM classes in PHP 8.4-dev. There's a dedicated
getInScopeNamespaces() method.
Previous Comments:
------------------------------------------------------------------------
[2012-11-01 10:59:28] jirka at kosek dot cz
Description:
------------
If XML documents you are processing are using QNames inside attribute or element values there is
need to get list of all XML namespaces declared for a particular element inside DOM.
libxml2 has function for this
http://www.xmlsoft.org/html/libxml-tree.html#xmlGetNsList
Unfortunately this function is not exposed in PHP DOM extensions and there is no other way how to
get namespaces inscope for some element.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63410&edit=1