From ca9319aaba2f7e5c1097e2642a6cd5f6d301e014 Mon Sep 17 00:00:00 2001 From: hniksic Date: Tue, 18 Dec 2001 17:15:34 -0800 Subject: [PATCH] [svn] Treat the "shortcut icon" link as inline. Published in . --- src/ChangeLog | 5 +++++ src/html-url.c | 12 +++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index dcdab473..de140835 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2001-12-19 Hrvoje Niksic + + * html-url.c (tag_handle_link): Treat the "shortcut icon" link as + inline. + 2001-12-18 Hrvoje Niksic * recur.c (retrieve_tree): Make a copy of file obtained from diff --git a/src/html-url.c b/src/html-url.c index ed5d45b6..74703ce6 100644 --- a/src/html-url.c +++ b/src/html-url.c @@ -484,12 +484,18 @@ tag_handle_link (int tagid, struct taginfo *tag, struct map_context *ctx) int attrind; char *href = find_attr (tag, "href", &attrind); - /* All link references are external, - except for . */ + /* All link references are external, except those + known not to be, such as style sheet and shortcut icon: + + + + */ if (href) { char *rel = find_attr (tag, "rel", NULL); - int inlinep = (rel && 0 == strcasecmp (rel, "stylesheet")); + int inlinep = (rel + && (0 == strcasecmp (rel, "stylesheet") + || 0 == strcasecmp (rel, "shortcut icon"))); append_one_url (href, inlinep, tag, attrind, ctx); } } -- 2.39.2