Author: jmb
Date: Thu Jun 29 22:29:21 2006
New Revision: 2676
URL:
http://svn.semichrome.net?rev=2676&view=rev
Log:
Link rel attribute may be a space separated list, take account of this
when looking for stylesheets.
Modified:
trunk/netsurf/render/html.c
Modified: trunk/netsurf/render/html.c
URL:
http://svn.semichrome.net/trunk/netsurf/render/html.c?rev=2676&r1=267...
==============================================================================
--- trunk/netsurf/render/html.c (original)
+++ trunk/netsurf/render/html.c Thu Jun 29 22:29:21 2006
@@ -590,10 +590,10 @@
continue;
if (strcmp(node->name, "link") == 0) {
- /* rel='stylesheet' */
+ /* rel=<space separated list, including 'stylesheet'> */
if ((rel = (char *) xmlGetProp(node, (const xmlChar *) "rel")) == NULL)
continue;
- if (strcasecmp(rel, "stylesheet") != 0) {
+ if (strstr(rel, "stylesheet") == 0) {
xmlFree(rel);
continue;
}