IE Query Mode for Rendering IE 8

I know this is an old problem, and there are many fixes for this. I applied the following, but still some of my users get quirks mode. And its only users who run IE 8.

<!doctype html> 

and

 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 

This doesn't seem to be enough, the page is still running in quirksmode in IE 8.

Since this is the umbraco / C # site, the first line in the source is empty. This is due to the Master directive at the top. You cannot move over it. See Figure.

enter image description here

This is the code from the site.

 <!doctype html> <!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ --> <!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]--> <!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]--> <!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]--> <!-- Consider adding an manifest.appcache: h5bp.com/d/Offline --> <!--[if gt IE 8]><!--> <html class="no-js" lang="sv"> <!--<![endif]--> <head> <meta charset="utf-8"> <!-- Use the .htaccess and remove these lines to avoid edge case issues. More info: h5bp.com/b/378 --> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 

The source is as follows.

 <%@ Master Language="C#" AutoEventWireup="true" %> <!doctype html> <%@ Import Namespace="System.Web.Configuration" %> <!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ --> <!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]--> <!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]--> <!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]--> <!-- Consider adding an manifest.appcache: h5bp.com/d/Offline --> <!--[if gt IE 8]><!--> <html class="no-js" lang="sv"> 

The wizard creates an empty line at the top.

Installing Google Chrome Frame fixes the problem, but due to the citrix environment, some of our users do not have full control over installing plugins.

+4
source share
2 answers

See Henri Sivonanceโ€™s page Activating browser modes with Doctype , which also discusses IE 8/9 features and (despite the page name) factors other than the doctype declaration that can affect browser mode.

0
source

Is the page on the intranet? I assume IE8 uses quirks mode by default. You can set up group policy to get around this, though.

0
source

Source: https://habr.com/ru/post/1439838/


All Articles