Return to Snippet

Revision: 66747
at June 27, 2014 05:12 by Japegrape


Initial Code
<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie10 lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie10 lt-ie9 lt-ie8 ie7"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie10 lt-ie9 ie8"> <![endif]-->
<!--[if IE 9]>         <html class="no-js lt-ie10 ie9"> <![endif]-->
<!--[if gt IE 9]><!--> <html class="no-js"> <!--<![endif]-->
<!--[if !IE]><!-->
  <script>
    if( Function('/*@cc_on return document.documentMode===10@*/')() ) {
      document.documentElement.className+=' ie10';
    }
  </script>
<!--<![endif]-->

Initial URL


Initial Description
Code to replace your opening <html> tag with conditionally set IE classes, including IE10.

Initial Title
HTML Tag IE Conditional Comments

Initial Tags
ie, html

Initial Language
HTML