Skip to content

Commit 4a8c836

Browse files
author
Dirk Ginader
committed
changed the \9 hack to \0 as it appears to be more reliable in IE9
1 parent d3f1a0e commit 4a8c836

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

index.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
* * 1.3 adding support for Firefox 3.5+
2222
* * 1.4 adding support for Internet Explorer 9+
2323
* * 1.4.1 added missing exclude for other modern Browsers who also read the CSS3 selector. IE9 Hack is now perfect.
24+
* * 1.4.2 changed the \9 hack to \0 as it appears to be more reliable in IE9
2425
-->
2526

2627
<style type="text/css">
@@ -65,12 +66,12 @@
6566

6667
/* IE6, IE 7, IE 8 and IE 9 */
6768
body #ie6andie7andie8andie9{
68-
display:block\9;
69+
display:block\0;
6970
}
7071

7172
/* IE 8 */
7273
body #ie8{
73-
display:block\9;
74+
display:block\0;
7475
*display: none; /* overwrite for ie6 and ie7*/
7576
}
7677
body #ie8:nth-of-type(1n){ /* overwrite for ie9 which still also reads the \9 hack */
@@ -79,7 +80,7 @@
7980

8081
/* IE 9+ */
8182
body #ie9:nth-of-type(1n){ /* CSS3 Selector that is interpreted by many modern Browsers including IE()*/
82-
display:block\9; /* Hack to specify Internet Explorers including 9 so we exclude FF, webkit, etc */
83+
display:block\0; /* Hack to specify Internet Explorers including 9 so we exclude FF, webkit, etc */
8384
}
8485

8586
/* Webkit (Safari and Chrome) */

0 commit comments

Comments
 (0)