Skip to content

Instantly share code, notes, and snippets.

@samuelcotterall
Created October 11, 2011 20:50
Show Gist options
  • Save samuelcotterall/1279391 to your computer and use it in GitHub Desktop.
Save samuelcotterall/1279391 to your computer and use it in GitHub Desktop.
ORIGINAL:
<!--[if IEMobile 7]><html class="no-js iem7 oldie"><![endif]-->
<!--[if lt IE 7]><html class="no-js ie6 oldie" lang="en"><![endif]-->
<!--[if (IE 7)&!(IEMobile)]><html class="no-js ie7 oldie" lang="en"><![endif]-->
<!--[if (IE 8)&!(IEMobile)]><html class="no-js ie8 oldie" lang="en"><![endif]-->
<!--[if gt IE 8]><!--><html class="no-js" lang="en"><!--<![endif]-->
<!--[if (gte IE 9)|(gt IEMobile 7)]><!--><html class="no-js" lang="en"><!--<![endif]-->
XSLT:
<xsl:comment><![CDATA[[if IEMobile 7]><html class="no-js iem7 oldie"><![endif]]]></xsl:comment>
<xsl:comment><![CDATA[[if lt IE 7]><html class="no-js ie6 oldie" lang="en"><![endif]]]></xsl:comment>
<xsl:comment><![CDATA[[if (IE 7)&!(IEMobile)]><html class="no-js ie7 oldie" lang="en"><![endif]]]></xsl:comment>
<xsl:comment><![CDATA[[if (IE 8)&!(IEMobile)]><html class="no-js ie8 oldie" lang="en"><![endif]]]></xsl:comment>
<xsl:comment><![CDATA[[if gt IE 8]><!]]></xsl:comment><html class="no-js" lang="en"><xsl:comment><![CDATA[<![endif]]]></xsl:comment>
<xsl:comment><![CDATA[[if (gte IE 9)|(gt IEMobile 7)]><!]]></xsl:comment><html class="no-js" lang="en"><xsl:comment><![CDATA[<![endif]]]></xsl:comment>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment