Media-descriptors are case-insensitive.

svn path=/trunk/netsurf/; revision=3044
This commit is contained in:
Michael Drake 2006-11-11 09:43:47 +00:00
parent 58e8f5fb0d
commit 725d8c94a2

View File

@ -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;
}