Author: tom
Description:
IEFixes.css is included in several skins (including monobook) to load various IE**Fixes.css sheets. It's
just a collection of parser hacks to @import the right IE-fixing stylesheet to the right IE version.
But I can't see any point in it.
Instead of using it, we can simply use conditional comments in <head>, like this:
<!--[if IE 5.0]><link rel="stylesheet" href="IE50Fixes.css" /><![endif]--> <!--[if IE 5.5]><link rel="stylesheet" href="IE55Fixes.css" /><![endif]--> <!--[if IE 6.0]><link rel="stylesheet" href="IE60Fixes.css" /><![endif]-->
This is good for several reasons:
- Gets rid of a HTTP request for IEFixes.css
- Stops IE from requesting /style/monobook/null?"{ due to syntax hack
- Doesn't require mad syntax hacks which can be hard to debug and easy to break
And yes, conditional comments aren't standard and are IE/win-only - but we already use one to include
IEFixes.css in the first place, so I see no harm in extending it to cover all versions.
Version: unspecified
Severity: minor
OS: Windows XP
Platform: PC