Last active
October 18, 2019 02:58
-
-
Save SteveBenner/a71f41e175f135b7d69b to your computer and use it in GitHub Desktop.
Helper [tag] for generating one or more HTML tags inside IE conditional comments, in the style of HTML5 Boilerplate
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
<!DOCTYPE html> | |
<!--[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]--> | |
<!--[if gt IE 8]<!--><html class="no-js" lang="en"><!--<![endif]--> | |
... web page content ... | |
</html> |
Thanks for this awesome helper, I'm using it with middleman and finally I don't have to worry about those damn conditional classes!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
More information about this helper function can be found here, along with several Slim templates showcasing it’s usage.