Webgyani logo

A cognitive perspective on web

Monthly Archives: August 2009

Internet Explorer "Invalid argument" error

Recently, I was completely bowled out by Internet Explorer’s “Invalid argument” error, I did a google but couldn’t find any, so I started debugging my code, after a couple of hours of hair-pulling I did find the cause, and it was an accidental implementation of a PNG fix for IE 6. Let me explain this a bit, we have a “png fix” class in one of our CSS files where we have used some IE ‘expression hack’ to apply a fix for transparent PNG images in IE6 and somebody by mistake applied that class to an image which is a GIF file, and this was causing the error.
I thought to write about it, in case somebody has the same problem, he/she might find it helpful

Posted in Blogroll | 1 Comment

Categories