mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Backport lexbor/lexbor@814e0bce97 (#18574)
Co-authored-by: Alexander Borisov <lex.borisov@gmail.com>
This commit is contained in:
parent
72efe6dcdf
commit
dbc7c5f34a
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
lxb_dom_attr_t *attr = element->first_attr;
|
||||||
|
|
||||||
while (attr != NULL) {
|
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;
|
return attr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue