Annoying JS Error Object Required Line 1 Char 1 in Internet Explorer

I had to spend a lot of time to figure this out.

In the end it turned out to be a simple thing. Wicked and wierd IE! Gosh!

Verify that in your CSS files, there is no javascript expressions. If there is, then thats what that causes this problem.

A sample of a CSS Expression (typically used only by IE.. which is why only IE will throw this error!)

height: expression( document.body.clientHeight < 600 ? "600px" : "auto" );

And yea, it only happens once in a while. CSS should always be kept as clean as possible.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License