Well this is a really weird issue, I really didn’t find anything on this elsewhere so I thought I’d address it here.
Say I have an “image.jpg” and accidentally reference it in the CSS like so:
url(imag.jpg)
Note the missing “e”. Now for me, Firefox is so incredibly clever that it will still find the correct image, but not spit out a warning. So I assume that everything is ok.
But later, when I test the page in any other browser, all of a sudden the image doesn’t display (and rightly so). That’s because Firefox thought it was a good idea to correct my error without telling me.
This becomes more critical with scripts. Firefox will also auto-correct a typo in a <script src=""> reference.
I just wasted a whole hour scratching my head and trying to debug an ajax function in Webkit – turns out, I just had a typo where I included the file.
Why on earth does Firefox do this without telling, and where the heck can I turn this off? This has first occured somewhere around FF 3.0 and still persists in 3.6.3.
/rant an thank fo any inpu 😉
EDIT: Thanks for your answers so far. I’ve uploaded a demo
EDIT 2: Thanks to the great input below, I found out that it was my server having the CheckSpelling module on (Apache). Solution: Add
CheckSpelling OFF
to the .htaccess and that fixes it. Thanks again to all.
PS. I’m sorry that I blamed you, Firefox. You’re still the best!
I don’t think this has anything to do with Firefox. Your script also gets included in IE, which leads me to believe your web server is redirecting the request to the real file, not Firefox. What web server are you using? IIS?
When I browse to
http://soapdesigned.com/firefox-test/scrip.jsin IE, I get prompted to download script.js, the correct file.Update:
After examining with Fiddler, when I request scrip.js, I get HTTP 301 (Moved Permanently).