Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

X-UA-Compatible meta tag must be first in the <head> element #146

Closed
wants to merge 1 commit into from
Closed

X-UA-Compatible meta tag must be first in the <head> element #146

wants to merge 1 commit into from

Conversation

@joshbuchea
Copy link
Owner

Do you have any other references to support your claim? I'm not convinced by that Stackoverflow thread.

@thisconnect
Copy link
Author

I am not happy about it either. We had this issue only with intranet pages where the network team couldn't change the config due to other MS services. IIR old sharepoint was the reason they wouldn't change it.

Placing the X-UA-Compatible meta tag first fixed it.
Maybe a comment instead of chainging the order is better?

<meta http-equiv="x-ua-compatible" content="ie=edge"><!-- if intranet settings force Compatibility View place this first -->

@thisconnect
Copy link
Author

Related: you can't have comments before the X-UA-Compatible meta tag h5bp/html5-boilerplate#1187

Which at one point the HTML5 boilerplate had the conditional comment around the <body> before the completely remove it.

@ThaDafinser
Copy link

ThaDafinser commented Sep 13, 2016

In general this is really helpful:
https://developer.microsoft.com/en-us/microsoft-edge/testdrive/ieblog/2010/Mar/02_HowIE8DeterminesDocumentMode_3.png

I tried it now in IE11 and recogniced no difference? (also intranet)

@joshbuchea
Copy link
Owner

Thank you for the additional references. Although I'd prefer to see something from a respected source, preferably something more recent. Stackoverflow threads and older random blog posts are not the greatest sources.

I believe that html comments before the tag will cause issue, but I'm not convinced the current order of the tags is an issue.

@joshbuchea joshbuchea closed this Sep 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants