rafaelp / css_browser_selector

A very small javascript library that allows you to create browser specific CSS to be merged into your normal classes. No more hacks or mischievous code in your CSS code.
http://rafael.adm.br/css_browser_selector/
626 stars 168 forks source link

Fixes for IE8 Compatibility Mode #6

Open kevingessner opened 13 years ago

kevingessner commented 13 years ago

In my testing, and based on the official MS blogs here and here, IE8 in Compatibility Mode behaves a lot more like IE8 than IE7, even though the user agent says "MSIE 7.0". This patch looks for the IE8-only "Trident/4.0" string to apply the correct class.

Thanks for a great little script. It's a lifesaver.

Cheers, -- Kevin