Last active
December 27, 2015 11:49
-
-
Save michaeldeboeve/7321909 to your computer and use it in GitHub Desktop.
Jade: Conditional HTML for Intern,et Explorer with variable language attribute
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
//--------------------------------------------------------- | |
//- IE conditional statements | |
//--------------------------------------------------------- | |
- var lang = 'nl' | |
!= '<!-- [if IEMobile 7 ]> ' | |
!= '<html lang="'+lang+'" class="no-js iem7">' | |
!= '<![endif] -->' | |
!= '\n' | |
!= '<!-- [if lt IE 7]> ' | |
!= '<html lang="'+lang+'" class="no-js lt-ie9 lt-ie8 lt-ie7 ie6">' | |
!= '<![endif] -->' | |
!= '\n' | |
!= '<!-- [if IE 7]> ' | |
!= '<html lang="'+lang+'" class="no-js lt-ie9 lt-ie8 ie7">' | |
!= '<![endif] -->' | |
!= '\n' | |
!= '<!-- [if IE 8]> ' | |
!= '<html lang="'+lang+'" class="no-js lt-ie9 ie8">' | |
!= '<![endif] -->' | |
!= '\n' | |
// [if (gte IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><! | |
!= '<html lang="'+lang+'" class="no-js">' | |
// <![endif] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment