peterdesmet / peterdesmet.github.io

Content and settings for my blog
https://peterdesmet.com/
Creative Commons Attribution 4.0 International
1 stars 0 forks source link

Disqus comments do not load in IE 9 #17

Closed peterdesmet closed 8 years ago

peterdesmet commented 11 years ago

In IE9, instead of the Disqus comments, the following error message is shown with a red border:

This page is forcing your browser to use legacy mode, which is not compatible with Disqus. Please see our troubleshooting guide to get more information about this error.

peterdesmet commented 11 years ago

According to the IE developer tools:

In other words, the browser is not in Quirks mode, but is rendering the page as IE7. This can be manually changed, but it would be better to have the website indicate how it should be rendered (i.e. in the latest version of IE).

peterdesmet commented 11 years ago

The error is probably caused by <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">, but that seems to be the best setting. Not sure yet how to solve this.

peterdesmet commented 11 years ago

This issue is discussed on HTML5boilerplate. Server side forcing seems to be the only valuable solution.

peterdesmet commented 11 years ago

Actually, Disqus does show the comments in IE7, but without avatars, social buttons, and a very basic layout. It is also not possible to leave a comment, you can only read the current ones.

peterdesmet commented 11 years ago

The browser mode IE9 Compat View is forcing the IE7 standards document mode, not the other way around. If the browser mode is manually set to IE9 (in dev tools), the document mode follows automatically to IE9 standards.

In other words, we have a case of rule 4, and the Compatibility View needs to be turned off...

peterdesmet commented 8 years ago

Tested for https://github.com/inbo/lifewatch-blog/issues/2 and seems to work for IE 11. Closing.