mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-26 04:12:03 +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 */
|
/* media contains 'screen' or 'all' or not present */
|
||||||
if ((media = (char *) xmlGetProp(node, (const xmlChar *) "media")) != NULL) {
|
if ((media = (char *) xmlGetProp(node, (const xmlChar *) "media")) != NULL) {
|
||||||
if (strstr(media, "screen") == 0 &&
|
if (strcasestr(media, "screen") == 0 &&
|
||||||
strstr(media, "all") == 0) {
|
strcasestr(media, "all") == 0) {
|
||||||
xmlFree(media);
|
xmlFree(media);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -699,8 +699,8 @@ bool html_find_stylesheets(struct content *c, xmlNode *head)
|
|||||||
|
|
||||||
/* media contains 'screen' or 'all' or not present */
|
/* media contains 'screen' or 'all' or not present */
|
||||||
if ((media = (char *) xmlGetProp(node, (const xmlChar *) "media")) != NULL) {
|
if ((media = (char *) xmlGetProp(node, (const xmlChar *) "media")) != NULL) {
|
||||||
if (strstr(media, "screen") == 0 &&
|
if (strcasestr(media, "screen") == 0 &&
|
||||||
strstr(media, "all") == 0) {
|
strcasestr(media, "all") == 0) {
|
||||||
xmlFree(media);
|
xmlFree(media);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user