IE8 cometh

Internet Explorer

If you’re into web development you’re likely aware of the big news from Microsoft that Internet Explorer 8 Beta 1 is now available. This comes less than 1.5 years since IE7 was released, and represents a much faster development cycle than was observed with IE7. (Over five years passed between the initial release of IE6 and IE7)

With Firefox Beta 3 released not long ago and the final version due in the first half of 2008, Microsoft has been feeling the heat and probably has decided to devote real effort towards improving Internet Explorer in order to regain market share lost mainly to Firefox.

However, what’s most interesting and impressive about IE8 is not its fast follow-up to IE7, but its broad support for web standards and other improvements that many did not expect, especially after the poor track record of IE6 that wasn’t improved much by IE7.

Be Ready

Microsoft details the many important changes IE8 will bring in their IE8 Readiness Toolkit. Besides passing the Acid2 test (MS has created a list of CSS 2.1 Test Pages/Cases), the browser also natively supports the hAtom Microformat in order to implement what MS calls “WebSlices”, which are basically portions of a webpage that can be subscribed to, much like an RSS feed. The example shows how to mark up an auction item and its price so that the content can be easily be scraped, organized and read by an aggregator.

Other improvements in the area of JavaScript are also appealing. In the area of Ajax, MS is pushing a Cross-Domain Request model (XDR), which would overcome the same-origin restrictions of the current XHR object. It is claimed that this is secure, but we’ll have to wait-and-see if this also adopted by other browsers. Hopefully it is, if its proven to be an open and robust standard – after all, XMLHttpRequest did start off at Microsoft. Whatever the outcome, clearly a solution to the same-origin XHR policy must be found, since current workarounds (such as injecting a script element into the document) are cumbersome at best.

IE8 has also addressed the JavaScript circular memory leak problem seen in previous versions. This problem can occur because of careless coding that creates references and situations that the previous garbage collector could not deal with properly; basically, if two objects referenced each other (with their properties), they would never be considered “dereferenced”, even if no other references existed for them. This has the tendency to eat up memory, and unfortunately, it’s quite easy to do this accidentally in JavaScript. Fixing this problem is especially important now that web applications are increasingly relying on complex JavaScript for features.

From a user point-of-view, IE8 adds a lot of social-web and other features that cut across multiple websites. For example, it’s easy to share a website on Facebook/Digg, or select an address on a webpage and look it up using Microsoft’s Live Maps service with the built-in functionality. What remains to be seen is if IE8 will develop a vibrant third-party plugin community like Firefox has – this has been one feature of Firefox that I simply couldn’t do without, and it allows you to easily add functionality that’s not present in the core.

Hope for the future

All of this may come as a shock to web developer, who for years have had to deal with IE’s hopeless inadequacy when it came to following web standards. Far too often, the development cycle would look something like this: 1) Get it working in a standards-compliant browser (like Firefox or Opera); 2) “Hack it” to get it to work properly with IE. Though I have not had a chance to properly look at IE8’s beta, it appears that this version will finally get things right, making things much easier for us all. Microsoft has claimed this to be part of their interoperability push, but I believe it’s a push to be more like Firefox to slow the flow of users who are switching from IE to Firefox.

The biggest change, and perhaps the most recent, to IE8 was Microsoft’s reversal of how they’d handle standards mode. Previously, they had decided that true standards-mode would only be invoked on the browser’s rendering engine if the web page specified it. That is, by default, IE8 would use a quirks-mode compatible with how IE7 had worked. This was utterly stupid and contrary to the nature of web-standards. A standard should be used by default!

Furthermore, the only reason behind this decision was that MS did not want to “break” how IE8 worked with websites that were previously designed to work with IE7’s not-so-standards mode – a problem that they had created by not following standards in the first place. This sort of reasoning effectively slows adoption of standards, since it creates a chicken-and-the-egg problem – if the dominant web browser doesn’t properly follow web standards, neither will a significant number of websites. Thankfully, Microsoft decided that the chicken’s (or the egg, if you will) time has come, and that IE8 will support standards mode by default – the way it was meant to be.

Some things do concern me, for example, the way “Activities” are implemented. Currently, a website can add in an activity with the following code example from the IE8 site:

<button onclick="javascript:window.external.addService('GetMap.xml')">Add Map Activity</button>

The “GetMap.xml” file points to XML that describes the activity’s functionality. So as long as other browsers/plugins aren’t prevented from implementing support for this, things should be okay. Otherwise, we risk a disturbing slide back towards the day when sites were “best viewed in “.

(As a side note, I understand that the example code was for brevity, but the best way to invoke JavaScript on a page is not using an inline call like that, but in a separate JavaScript file using proper event handlers. Also, one should test for the existence of a method that may not exist, before calling it. Checking for user-agents/browser versions is a big no-no. As far as I know, window.external.addService is IE8-only right now.)

Looking forward

Overall, I’m very pleased with what IE8 promises. It’ll be interesting to see how fast it is adopted by the masses and how this measurement compares with how fast IE7 was adopted. We’ll also get to see if Microsoft’s adoption of web standards has an effect on its share of the browser market.

4 Comments »

  1. IE8 doesn’t support X.509 email certificates! Bad! Unfortunately I have deleted the Uninstall files.

  2. A clarification regarding the above…

    It seems that Thawte.com is the one not allowing Personal Email certificates to IE8. Just turn on Compatibility mode and it works fine.

  3. Internet Explorer 8 is very good because it is as stable as Opera. I hate the previous versions of IE like IE6 because it hangs frequently. .

  4. Internet Explorer 8 have been my most used browser this year, it is definitely stable and fast loading too. :

Comments are now closed for this entry.