mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-23 23:09:39 +03:00
Fix matching of universal element selectors
svn path=/trunk/netsurf/; revision=11979
This commit is contained in:
parent
91003cbaf3
commit
ffd2e6095d
@ -849,9 +849,13 @@ css_error node_has_name(void *pw, void *node,
|
||||
size_t len = lwc_string_length(qname->name);
|
||||
const char *data = lwc_string_data(qname->name);
|
||||
|
||||
/* Element names are case insensitive in HTML */
|
||||
*match = strlen((const char *) n->name) == len &&
|
||||
if (len == 1 && data[0] == '*') {
|
||||
*match = true;
|
||||
} else {
|
||||
/* Element names are case insensitive in HTML */
|
||||
*match = strlen((const char *) n->name) == len &&
|
||||
strncasecmp((const char *) n->name, data, len) == 0;
|
||||
}
|
||||
|
||||
return CSS_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user