From 017fc4eb4b9f322ba36427ecb34853b93a41e62a Mon Sep 17 00:00:00 2001 From: James Bursa Date: Mon, 30 Jun 2003 12:44:03 +0000 Subject: [project @ 2003-06-30 12:44:02 by bursa] New file headers. svn path=/import/netsurf/; revision=190 --- render/html.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'render/html.c') diff --git a/render/html.c b/render/html.c index 1517e89a5..c9932f6a4 100644 --- a/render/html.c +++ b/render/html.c @@ -1,5 +1,8 @@ -/** - * $Id: html.c,v 1.20 2003/06/26 11:41:26 bursa Exp $ +/* + * This file is part of NetSurf, http://netsurf.sourceforge.net/ + * Licensed under the GNU General Public License, + * http://www.opensource.org/licenses/gpl-license + * Copyright 2003 James Bursa */ #include @@ -260,6 +263,9 @@ void html_find_stylesheets(struct content *c, xmlNode *head) if (!(href = (char *) xmlGetProp(node, (const xmlChar *) "href"))) continue; + /* TODO: only the first preferred stylesheets (ie. those with a + * title attribute) should be loaded (see HTML4 14.3) */ + url = url_join(href, c->url); LOG(("linked stylesheet %i '%s'", i, url)); xmlFree(href); -- cgit v1.2.3