Code Monkey home page Code Monkey logo

Comments (5)

paulirish avatar paulirish commented on May 4, 2024

The downside is that it'll get much bigger...

from

<!--[if lt IE 7 ]> <body class="ie6"> <![endif]-->
<!--[if IE 7 ]>    <body class="ie7"> <![endif]-->
<!--[if IE 8 ]>    <body class="ie8"> <![endif]-->
<!--[if IE 9 ]>    <body class="ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <body> <!--<![endif]-->

to

<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]>    <html lang="en" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]>    <html lang="en" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]>    <html lang="en" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->

thoughts anyone?

from html5-boilerplate.

nimbupani avatar nimbupani commented on May 4, 2024

I would prefer the IE classes on html because CMSes like Drupal/WP almost always have a bodyclasses function on the body opening tag. It makes it less of a hassle to edit for various custom CMSes.

from html5-boilerplate.

adeelejaz avatar adeelejaz commented on May 4, 2024

Also, imagine a scenario where you have ids and classes on body like:

<body id="cart" class="shopping ie6">

You cannot really get this to work in ie6:

.shopping.ie6 p { padding-left: 2px }

Putting it on html tag gives the liberty to do something like:

.ie6 .shopping p { padding-left: 2px }

from html5-boilerplate.

paulirish avatar paulirish commented on May 4, 2024

Good usecases, adeel and divya. I think we can make this change.

from html5-boilerplate.

nimbupani avatar nimbupani commented on May 4, 2024

IE conditional classes moved to html tag. Closed by 35ababe

from html5-boilerplate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.