[php-src] PHP-8.4: Backport lexbor/lexbor@814e0bce970eb95d553ae1a4ba88b26ba8102d12 (#18574)

From: Date: Fri, 16 May 2025 18:39:01 +0000
Subject: [php-src] PHP-8.4: Backport lexbor/lexbor@814e0bce970eb95d553ae1a4ba88b26ba8102d12 (#18574)
Groups: php.cvs 
Request: Send a blank email to [email protected] to get a copy of this message
Author: Niels Dossche (nielsdos)
Committer: GitHub (web-flow)
Pusher: nielsdos
Date: 2025-05-16T20:27:56+02:00

Commit: https://github.com/php/php-src/commit/dbc7c5f34a4716938f5278c7e9401112ac4ff802
Raw diff: https://github.com/php/php-src/commit/dbc7c5f34a4716938f5278c7e9401112ac4ff802.diff

Backport lexbor/lexbor@814e0bce970eb95d553ae1a4ba88b26ba8102d12 (#18574)

Co-authored-by: Alexander Borisov <[email protected]>

Changed paths:
  M  ext/dom/lexbor/lexbor/dom/interfaces/element.c


Diff:

diff --git a/ext/dom/lexbor/lexbor/dom/interfaces/element.c
b/ext/dom/lexbor/lexbor/dom/interfaces/element.c
index 157beb9cf7be6..9ed65f522a7e4 100644
--- a/ext/dom/lexbor/lexbor/dom/interfaces/element.c
+++ b/ext/dom/lexbor/lexbor/dom/interfaces/element.c
@@ -444,7 +444,9 @@ lxb_dom_element_attr_by_local_name_data(lxb_dom_element_t *element,
     lxb_dom_attr_t *attr = element->first_attr;
 
     while (attr != NULL) {
-        if (attr->node.local_name == data->attr_id) {
+        if (attr->node.local_name == data->attr_id
+            || attr->qualified_name == data->attr_id)
+        {
             return attr;
         }
 


Thread (1 message)

  • Niels Dossche via GitHub
« previous php.cvs (#134132) next »