Skip to content

Instantly share code, notes, and snippets.

@davidhund
Created October 21, 2011 11:47
Show Gist options
  • Save davidhund/1303640 to your computer and use it in GitHub Desktop.
Save davidhund/1303640 to your computer and use it in GitHub Desktop.
@roy asked why I disliked the H5BP IE conditional comments on the HTML element. https://twitter.com/#!/roy/status/127347118540193792
<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!-- Consider adding a manifest.appcache: h5bp.com/d/Offline -->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<!-- VERSUS -->
<!doctype html>
<html class="no-js" lang="en">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment