Microsoft Pushes Devs With Wider IE8 Beta
An anonymous reader recommends a story about the upcoming beta 2 release of Internet Explorer 8. InternetNews expects that the standards-compliant default mode will push many developers to update their sites. We've previously discussed IE8's standards compliance and other features. Quoting:
"Over the years of IE's dominance as the leading browser, designers regularly tweaked their sites to get the best possible accuracy in rendering pages in IE -- most recently, the current commercial release, IE7. Now those pages will need to be changed. Microsoft originally planned for IE8 to default to rendering similarly to IE7, while super standards mode would have been an option. The outcry from critics helped convince Microsoft officials to instead default to super standards. That, unfortunately, will mean work for site administrators."
Unforunately, it's not that simple. Previous versions of IE were broken enough that standards-compliant HTML and CSS would not render properly. So if you wanted the majority of people to be able to actually use your site, you /had/ to be aware of - and often code around - IE stupidity, for all but the simplest of applications.
The user-agent string is not a reliable indicator of which user-agent is being used (as counter-intuitive as this seems), a much better methodology (that several other people have already mentioned) is to use IE conditional comments to serve additional stylesheets to specific versions of Internet Explorer after the main stylesheet to override only the specific rules required to get that version of internet explorer to display the content as expected.
This has several advantages:
This is the methodology I prefer to follow with the sites that I develop, and after the experiences I had testing compatibility and fixing various layout problems that remained in IE7 I can say that it definitely pays off. Personally I'm hoping that IE8 will be close enough that I can finally dump IE conditional comments entirely once the older versions have disappeared and relegate it to the pile of no-longer relevant skills alongside the ability to generate pixel perfect layouts using tables & invisible spacer gifs and the ability to consistently beat almost anyone at Perfect Dark multiplayer.
There's mischief and malarkies but no queers or yids or darkies within this bastard's carnival, this vicious cabaret.