Skip to content

Instantly share code, notes, and snippets.

@michaeldeboeve
Last active December 27, 2015 11:49
Show Gist options
  • Save michaeldeboeve/7321909 to your computer and use it in GitHub Desktop.
Save michaeldeboeve/7321909 to your computer and use it in GitHub Desktop.
Jade: Conditional HTML for Intern,et Explorer with variable language attribute
//---------------------------------------------------------
//- 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