[php-src] PR #11343: Fix spec compliance error for DOMDocument::getElementsByTagNameNS
| From: | nielsdos | Date: | Mon, 29 May 2023 16:56:12 +0000 |
| Subject: | [php-src] PR #11343: Fix spec compliance error for DOMDocument::getElementsByTagNameNS | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-22618@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/11343
Author: nielsdos
Spec link: https://dom.spec.whatwg.org/#concept-getelementsbytagnamens
Spec says we should match any namespace when '*' is provided. This was however not the
case: elements that didn't have a namespace were not returned. This patch fixes the error by
modifying the namespace check.
Discovered while working on GH-11330.