X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=src%2Fhtml-url.c;h=74703ce6da932bd20782ad8dcdcede764437d242;hb=ca9319aaba2f7e5c1097e2642a6cd5f6d301e014;hp=f32f7c1d03b50b53c64e31604986f00c89136a81;hpb=d425985c37aefff64e3fbffaf102dde3002f318f;p=wget
diff --git a/src/html-url.c b/src/html-url.c
index f32f7c1d..74703ce6 100644
--- a/src/html-url.c
+++ b/src/html-url.c
@@ -120,7 +120,7 @@ static struct {
{ TAG_AREA, "href", TUA_EXTERNAL },
{ TAG_BGSOUND, "src", 0 },
{ TAG_BODY, "background", 0 },
- { TAG_EMBED, "href", 0 },
+ { TAG_EMBED, "href", TUA_EXTERNAL },
{ TAG_EMBED, "src", 0 },
{ TAG_FIG, "src", 0 },
{ TAG_FRAME, "src", 0 },
@@ -333,7 +333,7 @@ append_one_url (const char *link_uri, int inlinep,
this can only happen when using `--force-html -i', print
a warning. */
logprintf (LOG_NOTQUIET,
- _("%s: Cannot resolve relative link %s.\n"),
+ _("%s: Cannot resolve incomplete link %s.\n"),
ctx->document_file, link_uri);
return NULL;
}
@@ -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);
}
}