|
Posted by John Dunlop on 06/30/05 10:44
Michael Winter wrote:
> Using a type other than text/javascript is likely to leave a script
> unexecuted, so the introduction of application/javascript (and others)
> won't mean anything for quite some time.
I can see one workaround - and that's just what it is, mind
you, a *workaround* - though it's far from ideal. Write a
custom DTD in which the <type> attribute of SCRIPT is
optional. Then you can send your javascript files with the
MIME type <application/javascript> and have them executed by
at least some browsers. Two points to note, however: (1) you
have to use external scripts (which is No Bad Thing, I hear
you say), and (2) you can't call your document HTML4.01.
--
Jock
Navigation:
[Reply to this message]
|