More misleading browser errors
Another one of my occasional articles on misleading handling of coding errors by popular browsers.
The case of the disappearing image: visible in Firefox, missing in IE7
I came across this when answering a poster’s question on a popular WordPress theme site. The poster was complaining that an image on one of their web pages could be seen in Firefox, but was missing when viewed in IE7. A quick glance at the page Source showed that the image in question had a URI which began: http:///blahblah… Hopefully you will have spotted the error: three forward slashes after http rather than the correct two. It seems that Firefox “knows” this is an error and “corrects” the mistake. Hence the image is visible in Firefox whilst, on the other hand, IE7 returns an error and the image is not loaded. In my opinion the IE7 treatment of this coding error is correct: the link is not correct therefore the image should not be loaded. In this instance I think that the Firefox developers are wrong here and that such an error should remain exactly as it is – a coding error. So, for future reference I’ve added this one to the list of misleading browser behaviours that I first wrote about in this article: How browsers can be misleading when handling errors. If you have some other examples, please feel free to post a comment and tell me about it – or join in the discussion on the Forum.
Join the forum discussion on this post



