Skip to content

Commit

Permalink
let html scraper accept html5 <link rel="icon"> for favicon links
Browse files Browse the repository at this point in the history
  • Loading branch information
reger committed Dec 16, 2015
1 parent 4d2b934 commit 14803d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/net/yacy/document/parser/html/ContentScraper.java
Expand Up @@ -475,7 +475,7 @@ public void scrapeTag0(Tag tag) {
final String type = tag.opts.getProperty("type", EMPTY_STRING);
final String hreflang = tag.opts.getProperty("hreflang", EMPTY_STRING);

if (rel.equalsIgnoreCase("shortcut icon")) {
if (rel.equalsIgnoreCase("shortcut icon") || rel.equalsIgnoreCase("icon")) { // html5 -> rel="icon")
final ImageEntry ie = new ImageEntry(newLink, linktitle, -1, -1, -1);
this.images.add(ie);
this.favicon = newLink;
Expand Down

0 comments on commit 14803d5

Please sign in to comment.