HTML5-Reset icon indicating copy to clipboard operation
HTML5-Reset copied to clipboard

conditional comments on the <html> tag stop IE8 & 9 from going into EDGE mode

Open moloko opened this issue 10 years ago • 0 comments

IE8 & 9 are set to 'Display intranet sites in compatibility view'... they will drop into IE7 standards mode if you put the conditional comments where you've got them.

(Sorry I haven't had a chance to test in IE10 or 11)

This is also raised as an issue here.

Move them to the body tag and IE will respect the 'Edge mode' request again... and all still appears to work fine.

Several other possible solutions are discussed here - the 'pre-emptive conditional comment' method is quite neat I think

conditional comments before the html tag

conditional comments before the body tag

moloko avatar Aug 12 '14 14:08 moloko