Skip to content

Commit 05618e7

Browse files
committed
Merge branch 'PHP-8.4'
* PHP-8.4: Backport lexbor/lexbor@814e0bc (php#18574)
2 parents 47354a7 + dbc7c5f commit 05618e7

File tree

1 file changed

+3
-1
lines changed
  • ext/dom/lexbor/lexbor/dom/interfaces

1 file changed

+3
-1
lines changed

ext/dom/lexbor/lexbor/dom/interfaces/element.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,9 @@ lxb_dom_element_attr_by_local_name_data(lxb_dom_element_t *element,
444444
lxb_dom_attr_t *attr = element->first_attr;
445445

446446
while (attr != NULL) {
447-
if (attr->node.local_name == data->attr_id) {
447+
if (attr->node.local_name == data->attr_id
448+
|| attr->qualified_name == data->attr_id)
449+
{
448450
return attr;
449451
}
450452

0 commit comments

Comments
 (0)