Comments (5)
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.
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.
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.
Good usecases, adeel and divya. I think we can make this change.
from html5-boilerplate.
IE conditional classes moved to html tag. Closed by 35ababe
from html5-boilerplate.
Related Issues (20)
- Document color-scheme meta attribute HOT 5
- Normalize.css still referenced in index.html HOT 2
- [feat] : Enhance Accessibility Documentation for Inclusive Web Development
- Projet 1
- My First Code Start With Html ( Markup language )
- Bankai
- ELISANDER
- Html
- H
- Texte HOT 2
- Documentation HOT 1
- White
- Add a File/Folder structure HOT 2
- Form HOT 1
- Update to Gulp v5
- Release 9.0.1
- Failing tests on Windows HOT 2
- Add automated tests on different OS/hardware combinations HOT 1
- Html HOT 1
- Union
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from html5-boilerplate.