Solved

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

Posted on 2013-11-26
5
541 Views
Last Modified: 2013-11-30
<meta http-equiv="X-UA-Compatible" content="IE=edge">

This is giving me validation errors. I did a google search and as I understand it this just tells previous versions of IE to display using previous standards.

Is this tag really necessary? How would I get it to validate?

I'm going to leave this and focus on my errors. Even if it doesn't validate.
0
Comment
Question by:burnedfaceless
  • 3
  • 2
5 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 39678828
Strictly speaking it isn't valid.  If you are really pedantic about getting a green passed message in W3C you can pass it in the headers rather than the page.

And edge tells IE to use the latest version not a previous version (compatibility mode)
0
 

Author Comment

by:burnedfaceless
ID: 39678869
How would I write this to validate, and give the information to internet explorer it needs?

<!--[if IE 6]>
Special instructions for IE 6 here
<![endif]-->
0
 
LVL 58

Expert Comment

by:Gary
ID: 39678881
Not sure what you mean, if you need to add in IE6 specific js or css then you just place it inside the conditional tags.
<!--[if IE 6]>
<script scrc="some.js"></script>
<link media="screen" href="/styles.css" type="text/css" rel="stylesheet">
<![endif]--> 

Open in new window

0
 

Author Comment

by:burnedfaceless
ID: 39678935
Is it that important that I need to hide it from other browsers (for sake of validation or errors on other browsers) and is it important enough that i.e. needs it?

The comment tags apply to html as well so I could enter the meta tag html into that.

I'm not sure which version to put in the tags because it refers to that version and all previous internet explorer versions.
0
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 39678970
Other browsers will just ignore it. It's not worth worrying about the validation.
Don't use any version just use IE=edge and it will force the browser to render as the version of IE it is loaded in i.e. in IE9 it will use IE9's rendering engine, in IE8 it will use IE8's - in other words it won't fall into compatibility/quirks mode to display a website.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Summernote and form validation 10 40
Hover Gone 16 30
AngularJS/ HTML - Filtering ng-repeat by dates 32 29
Paper tearing animation 6 41
Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now