Forum Moderators: open
Use of the "text" top-level type for this kind of content is known to be problematic. This document thus defines text/javascript and text/ ecmascript but marks them as "obsolete". Use of experimental and unregistered media types, as listed in part above, is discouraged.
The media types,* application/javascript
* application/ecmascriptwhich are also defined in this document, are intended for common use and should be used instead.
As for compatibility, I've no idea.
If a browser sees a script tag with language or type declaration that it doesn't understand it simply ignores the script entirely. A script tag is better off with no type attribute at all than with a bad one.
type="application/javascript"
type="application/x-javascript"
type="application/ecmascript"
Internet Explorer 6 does not recognise these type values.
...need I say more?
I won't be working in the job field until IE6 is an unfresh corpose like Netscape 4 is right now anyway so IE7 would be of some concern.
In this case I'd like to bug Microsoft to support the correct mime, just a confirmation to my specific question would be nice before I do so of course! :)
Thanks to you both!
John
On the other hand, application/x-javascript is the MIME type that IIS associates with a .js file: [microsoft.com...]
Perhaps the "Internet Explorer Resource Kit" would offer some illumination, but I don't have it, myself.