Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Favicon doesn't show in all pages on IE?

The favicon does not work on some pages in IE. But the favicon works on these pages as well in other browsers (tested in Firefox and Chrome).

Pages not showing the favicon in IE: link - favicon error in IE

Pages showing the favicon in IE: link - favicon works

like image 518
anglimasS Avatar asked Jul 26 '13 06:07

anglimasS


People also ask

How do I add a favicon to all pages?

To add a favicon to your website, either save your favicon image to the root directory of your webserver, or create a folder in the root directory called images, and save your favicon image in this folder. A common name for a favicon image is "favicon.ico".

Why is my favicon not displaying?

When you add a favicon to your site, it may not show up since your browser has 'saved' your site as one without a favicon. You need to clear the cache in your browser or use a different browser.

Do all websites have a favicon displayed in the URL?

Nowadays, favicons are displayed right above the address bar regardless of whether the website is bookmarked or not. And in the small chance that a website doesn't have a favicon, the browser will display a generic browser symbol. 2. In addition to the address bar, favicons can also be found in the browser history.


1 Answers

You have tagged the question with the "doctype" tag. This is a clue of what might be happening...

I am confident that the issue is related to the malformed HTML (or XHTML) tags in the document which IE fails to render the favicon. I myself already had lots of "unrelated" issues due to malformed contents. I suppose, in this case, the document which fails to render the favicon is triggering a kind-of "quirks mode" in IE.

Unfortunately, there are so many issues with both documents which turns difficult to find out what exactly is the one triggering the specific IE "quirks mode" which causes the favicon problem.

The document where favicon works raises 61 errors and 3 warnings in the W3C markup validation service.

The document where favicon does not work in IE raises 98 errors and 25 warnings in the W3C markup validation service.

So, probably it is one of these additional 37 errors and 22 warnings at the failing favicon document which makes IE too much confused and incapable of parsing the thing as a whole.

I have not dived in the errors and warnings, because they are too many. But I'm sure that if the validation passed, favicon would be appearing at both pages.

like image 118
J. Bruni Avatar answered Oct 06 '22 01:10

J. Bruni