IE Operation Aborted

Mar 14, 09:36 PM By Eoghan O'Brien.

I came across a very strange bug in Internet Explorer today, I was using swfobject to embed flash the web standards way, everything worked perfectly well in Firefox, as usual. However, when I tested in IE I got a runtime error saying:


Internet Explorer cannot open the Internet site http://www.domain.com/path/to/file/.

Operation aborted

The problem is you can’t append to the body element from script that isn’t a direct child to the body element. It can be fixed simply by putting defer=”defer” in the script tag.

According to the W3C, the defer attribute:


When set, this boolean attribute provides a hint to the user agent that the script is not going to generate any document content (e.g., no “document.write” in javascript) and thus, the user agent can continue parsing and rendering.

It’s not every day you find a way to crash the IE runtime entirely like this, but hopefully this post will help people overcome the problem faster, if they do.

Commenting is closed for this article.
SIDENOTES

Understanding Web Design

Zeldman explains where web design differs from print design and the importance of designing dynamically. Very intelligent essay.

Cruciforum: Crucially Simple

A super simple lightweight piece of forum software from Stuart Langridge in just one PHP file. Drop it in a directory and you’re done.

A List Apart Survey Results

Close to 33,000 web professionals answered the survey’s 37 questions, providing the first data ever collected on the business of web design and development as practiced in the U.S. and worldwide.

Eric Meyer's CSS Reset

Meyer sets out to reset all browser’s default styles. IE inheritance support is a little frustrating though.

The Web Design Survey

Take 10 minutes to help A List Apart form a picture of the ways web design is practiced around the globe.

Subscribe to this Feed
LIVESEARCH
RECENT ARTICLES