We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6d02131 + 0f4643f commit 2bbb82eCopy full SHA for 2bbb82e
src/core/element.c
@@ -204,11 +204,10 @@ static dom_attr_list * _dom_element_attr_list_find_by_name(
204
return NULL;
205
206
do {
207
- if (((namespace == NULL && attr->namespace == NULL) ||
208
- (namespace != NULL && attr->namespace != NULL &&
209
- dom_string_isequal(namespace,
210
- attr->namespace))) &&
211
- dom_string_isequal(name, attr->name)) {
+ if ((namespace == NULL || (
+ (attr->namespace != NULL && dom_string_isequal(namespace, attr->namespace)))) &&
+ dom_string_isequal(name, attr->name)
+ ) {
212
/* Both have NULL namespace or matching namespace,
213
* and both have same name */
214
return attr;
0 commit comments