Created
March 31, 2014 10:09
-
-
Save richardh-vccp/9889221 to your computer and use it in GitHub Desktop.
IE Conditional <html>
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--[if HTML5]><![endif]--> | |
<!DOCTYPE html> | |
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | |
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> | |
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> | |
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
H5BP dropped using IE conditional comments for the tag as it prevents IE from honouring the "IE=edge" tag a while ago (meaning IE8 could run in IE8 Compatibility/IE7 mode), but if it's going to be helpful then use this gist as it should fix this issue