Skip to content

Commit dbc7c5f

Browse files
nielsdoslexborisov
andauthored
Co-authored-by: Alexander Borisov <lex.borisov@gmail.com>
1 parent 72efe6d commit dbc7c5f

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)