Skip to content

Instantly share code, notes, and snippets.

@richardh-vccp
Created March 31, 2014 10:09
Show Gist options
  • Save richardh-vccp/9889221 to your computer and use it in GitHub Desktop.
Save richardh-vccp/9889221 to your computer and use it in GitHub Desktop.
IE Conditional <html>
<!--[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]-->
@richardh-vccp
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment