Skip to content

Commit 13f17a7

Browse files
committed
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 `<meta http-equiv="X-UA-Compatible" content="IE=edge">` (see: #1187). This change also removes the related documentation. Close #1290 and #1187.
1 parent fdbff10 commit 13f17a7

File tree

3 files changed

+3
-25
lines changed

3 files changed

+3
-25
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
### HEAD
22

3+
* Remove IE conditional classes ([#1290](https://github.com/h5bp/html5-boilerplate/issues/1290), [#1187](https://github.com/h5bp/html5-boilerplate/issues/1187])).
4+
35
### 4.3.0 (September 10, 2013)
46

57
* Use one apple-touch-icon instead of six ([#1367](https://github.com/h5bp/html5-boilerplate/issues/1367)).

doc/html.md

-21
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,6 @@ table of contents](TOC.md)
33

44
# The HTML
55

6-
## Conditional `html` classes
7-
8-
A series of IE conditional comments apply the relevant IE-specific classes to
9-
the `html` tag. This provides one method of specifying CSS fixes for specific
10-
legacy versions of IE. While you may or may not choose to use this technique in
11-
your project code, HTML5 Boilerplate's default CSS does not rely on it.
12-
13-
When using the conditional classes technique, applying classes to the `html`
14-
element has several benefits:
15-
16-
* It avoids a [file blocking
17-
issue](http://webforscher.wordpress.com/2010/05/20/ie-6-slowing-down-ie-8/)
18-
discovered by Stoyan Stefanov and Markus Leptien.
19-
* It avoids the need for an empty comment that also fixes the above issue.
20-
* CMSes like WordPress and Drupal use the body class more heavily. This makes
21-
integrating there a touch simpler.
22-
* It still validates as HTML5.
23-
* It uses the same element as Modernizr (and Dojo). That feels nice.
24-
* It can improve the clarity of code in multi-developer teams.
25-
26-
276
## The `no-js` class
287

298
Allows you to more easily explicitly add custom styles when JavaScript is

index.html

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
<!DOCTYPE html>
2-
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
3-
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
4-
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
5-
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
2+
<html class="no-js">
63
<head>
74
<meta charset="utf-8">
85
<meta http-equiv="X-UA-Compatible" content="IE=edge">

0 commit comments

Comments
 (0)