public
Last active

Haml compatible IE boilerplate html tags

  • Download Gist
ie-conditionals.html.haml
Haml
1 2 3 4 5 6 7 8 9 10 11
!!!
/ 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">
/[if IE 7] <html class="no-js lt-ie9 lt-ie8" lang="en">
/[if IE 8] <html class="no-js lt-ie9" lang="en">
:plain
<!--[if gt IE 8] -->
%html{:lang => "en"}
/<![endif]
%head
%meta{:charset => "utf-8"}/

thanks for posting this. I used the following for supporting ie9+

!!!
/[if lt IE 9] <html class="lt-ie9">
/[if IE 9] <html class="lt-ie10">
:plain
  <!--[if gt IE 9] -->
%html
  /<![endif]
  %head

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.