]> sjero.net Git - wget/commitdiff
[svn] Treat the "shortcut icon" link as inline.
authorhniksic <devnull@localhost>
Wed, 19 Dec 2001 01:15:34 +0000 (17:15 -0800)
committerhniksic <devnull@localhost>
Wed, 19 Dec 2001 01:15:34 +0000 (17:15 -0800)
Published in <sxsadwgko2q.fsf@florida.arsdigita.de>.

src/ChangeLog
src/html-url.c

index dcdab47383a19e6d9194c8129edda617af77e3ab..de1408354d12529b41cbf684633329c9ce19bae1 100644 (file)
@@ -1,3 +1,8 @@
+2001-12-19  Hrvoje Niksic  <hniksic@arsdigita.com>
+
+       * html-url.c (tag_handle_link): Treat the "shortcut icon" link as
+       inline.
+
 2001-12-18  Hrvoje Niksic  <hniksic@arsdigita.com>
 
        * recur.c (retrieve_tree): Make a copy of file obtained from
index ed5d45b64b41763eb47095b576f740419a9a771e..74703ce6da932bd20782ad8dcdcede764437d242 100644 (file)
@@ -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 href="..."> link references are external,
-     except for <link rel="stylesheet" href="...">.  */
+  /* All <link href="..."> link references are external, except those
+     known not to be, such as style sheet and shortcut icon:
+
+       <link rel="stylesheet" href="...">
+       <link rel="shortcut icon" href="...">
+  */
   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);
     }
 }