One difference between Firefox & IE

In my program, I generated a HTML report with images (*.jpg) linked via file protocol, but customers find that images in the report cannot display correctly in IE (with red X), but it display well in Firefox, Why? I start to searching the difference between Firefox and IE, the length limitation of src attribute, and so on… with no avail. Then I tried to display a another JPeg file in IE, it works!!! Finally I found the cause, the images linked in the report has a jpg extension, but actually, they are png images, firefox seems can recognize this and display a png picture with jpg extension correctly, but IE get confused and display a red X. The fun thing is, if I change the extension to *.whatever, then both Firefox and IE will display the picture correctly, weird~~

Advertisement

Leave a Comment

No comments yet.

Comments RSS TrackBack Identifier URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.