mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 04:56:50 +03:00
Media-descriptors are case-insensitive.
svn path=/trunk/netsurf/; revision=3044
This commit is contained in:
parent
58e8f5fb0d
commit
725d8c94a2
@ -643,8 +643,8 @@ bool html_find_stylesheets(struct content *c, xmlNode *head)
|
||||
|
||||
/* media contains 'screen' or 'all' or not present */
|
||||
if ((media = (char *) xmlGetProp(node, (const xmlChar *) "media")) != NULL) {
|
||||
if (strstr(media, "screen") == 0 &&
|
||||
strstr(media, "all") == 0) {
|
||||
if (strcasestr(media, "screen") == 0 &&
|
||||
strcasestr(media, "all") == 0) {
|
||||
xmlFree(media);
|
||||
continue;
|
||||
}
|
||||
@ -699,8 +699,8 @@ bool html_find_stylesheets(struct content *c, xmlNode *head)
|
||||
|
||||
/* media contains 'screen' or 'all' or not present */
|
||||
if ((media = (char *) xmlGetProp(node, (const xmlChar *) "media")) != NULL) {
|
||||
if (strstr(media, "screen") == 0 &&
|
||||
strstr(media, "all") == 0) {
|
||||
if (strcasestr(media, "screen") == 0 &&
|
||||
strcasestr(media, "all") == 0) {
|
||||
xmlFree(media);
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user