From 6c08acd549efd3c166af5369adedf296b22c9c4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C4=83t=C4=83lin=20Mari=C8=99?= Date: Tue, 24 Sep 2013 09:17:41 +0300 Subject: [PATCH] Remove IE conditional classes The reasons behind this decision include the following: * This project will drop legacy browser support (see #1050), therefore, the use for conditional classes for IE 8+, becomes much more limited. * IE 10+ does not support conditional comments: http://msdn.microsoft.com/en-us/library/ms537512%28v=VS.85%29.aspx. * Users do and can develop easily without using the conditional classes, this technique being very limited in scope as no other browser versions are explicitly target in the same way. * It fixes the issue that prevents IE from honouring `` (see: #1187). This change also removes the related documentation. Close #1290 and #1187. --- CHANGELOG.md | 2 ++ doc/html.md | 21 --------------------- index.html | 5 +---- 3 files changed, 3 insertions(+), 25 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 90a0a3bf52..07e67fd52c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ ### HEAD +* Remove IE conditional classes ([#1290](https://github.com/h5bp/html5-boilerplate/issues/1290), [#1187](https://github.com/h5bp/html5-boilerplate/issues/1187])). + ### 4.3.0 (September 10, 2013) * Use one apple-touch-icon instead of six ([#1367](https://github.com/h5bp/html5-boilerplate/issues/1367)). diff --git a/doc/html.md b/doc/html.md index 7a564a25ef..a565f73623 100644 --- a/doc/html.md +++ b/doc/html.md @@ -3,27 +3,6 @@ table of contents](TOC.md) # The HTML -## Conditional `html` classes - -A series of IE conditional comments apply the relevant IE-specific classes to -the `html` tag. This provides one method of specifying CSS fixes for specific -legacy versions of IE. While you may or may not choose to use this technique in -your project code, HTML5 Boilerplate's default CSS does not rely on it. - -When using the conditional classes technique, applying classes to the `html` -element has several benefits: - -* It avoids a [file blocking - issue](http://webforscher.wordpress.com/2010/05/20/ie-6-slowing-down-ie-8/) - discovered by Stoyan Stefanov and Markus Leptien. -* It avoids the need for an empty comment that also fixes the above issue. -* CMSes like WordPress and Drupal use the body class more heavily. This makes - integrating there a touch simpler. -* It still validates as HTML5. -* It uses the same element as Modernizr (and Dojo). That feels nice. -* It can improve the clarity of code in multi-developer teams. - - ## The `no-js` class Allows you to more easily explicitly add custom styles when JavaScript is diff --git a/index.html b/index.html index dbc6abccba..66445a9068 100644 --- a/index.html +++ b/index.html @@ -1,8 +1,5 @@ - - - - +