weboholic.de

random rant-o-rama

about: X-UA-Compatible, Take 2

without comments

In case you’ve missed it, you can warm up here, here and here.

I’ve realized today, that it’ll be a long time till “edge” is default setting.

Let’s just examine the problem from Microsoft’s corporate point of view. Don’t forget that IE has still the largest market share and back then when IE7 came out it was even larger. But IE7 is supposed to be a better browser than IE6, why did Microsoft lost users? Because IE7 “broke the web”. By being more standards aware. And users didn’t blame the poorly written web sites nor the authors of those sites but the software. Many downgraded to IE6, others switched to Firefox or Opera. Truth is Microsoft lost “something” by bringing out a new browser release. And they obviously did learned from their mistake. This is the reason for the switch and this is also the reason, why “edge” is not going to be the default setting any time soon.

This is sad because backwards compatibility slows down the progress. But it’s also nice because it ensures accessibility.

I like about the solution that it’s a simple one. The <meta>-tag should save us real work of crafting ie6.css or ie7.css or anything similar. But only if IE8’s adoption rate is high enough, which I doubt. However what I don’t like about the whole story is the mere fact that out there are a lot, and I mean a lot, of lazy web developers that rely on old design patterns like table-based layouts, inline styling and scripting and spacer.gif. Those developers will be adopting standards at even slower rates. Now … this could mean more contracts for real web developers but on the other hand: Why pay more and wait longer?

And this is the real issue here and what the discussion should be about: How is Microsoft planning to remove old rendering modes? On what rates, under which conditions? Dean actually already asked the very same question:

Tell us what your real concerns are and we will try to help.

Thinking about the whole story today I’ve realized how right Dean is and how wrong I was yesterday. My statement might have been true, but this just makes the switch more dangerous: Where is our Web going to be in 2 or 3 years? Still IE6? No, thank you Microsoft, you can keep it for yourself.

John Resig also makes some perfectly good and valid points about the <meta> but in terms of JavaScript. Eric Meyer suggests for javascripters to continue and to expand object detection or browser sniffing. Now have a look at this sample code and tell me what do you think of it:

  1. jQuery(document).ready(function($) {
  2.   switch ($.whichIEifIE($)) {
  3.     case 6:   return my.uber.cool.site.ie6($); break;
  4.     case 7:   return my.uber.cool.site.ie7($); break;
  5.     case 8:   return my.uber.cool.site.ie8($); break;
  6.     case 9:   my.uber.cool.site.edge.fixes($);
  7.     default:  return my.uber.cool.site.w3c($); break;
  8.   }
  9. });

Written by Никола

January 27th, 2008 at 10:34 am

Posted in Бележки

Tagged with , , ,

Leave a Reply

Clicky Web Analytics