Re: Adding custom events to widget



On Dec 30, 2:46 pm, Anthony Levensalor <anth...@xxxxxxxxxxxxxxxxxxx>
wrote:
David Mark said:
4. OT for this post, but IE7 seems not to like the
"application/javascript" type attribute. Just more of the same?

Use text/javascript or nothing.

That I do. It was another of those little experiments, except I wes
confusing myself with some of the new 1.8 (incomplete) docs I found, and
just started messing around. Notcied FireFox executed the code for me
and IE didn't, then went back to standard.


It's better to use nothing. That's because W3C defines it as "text/
javascript" so IE is behaving correctly according to standard. But
unhelpfully IETF decided to define the MIME type of javascripts as
"application/javascript". So, technically, web servers should serve
pages as content-type "application/javascript" but in HTML it should
be declared as "text/javascript" (which is actually a non-existent
MIME type according to IETF). That is why it's better to just say
<script></script>.
.



Relevant Pages

  • Re: Javascript Quiz
    ... And there are widely distributed user agents that ignore `script' elements ... Prototype.js was written by people who don't know javascript for people ...
    (comp.lang.javascript)
  • Re: OT - javascript MIME type
    ... The MIME type registry marks text/javascript as ...
    (comp.lang.php)
  • Re: OT - javascript MIME type
    ... The MIME type registry marks text/javascript as ... Are there any browser issues with the MIME type ... Hmm, interesting. ...
    (comp.lang.php)
  • OT - javascript MIME type
    ... The MIME type registry marks text/javascript as ... obsolete. ... Are there any browser issues with the MIME type ...
    (comp.lang.php)