Solved

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

Posted on 2013-11-26
5
551 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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 is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

920 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

13 Experts available now in Live!

Get 1:1 Help Now