Co-authored-by: Alexander Borisov <lex.borisov@gmail.com>
This commit is contained in:
Niels Dossche 2025-05-16 20:27:56 +02:00 committed by GitHub
parent 72efe6dcdf
commit dbc7c5f34a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
} }