You are here: Re: text/javascript « HTML « IT news, forums, messages
Re: text/javascript

Posted by Michael Winter on 06/30/05 05:06

On 30/06/2005 02:51, Ian Rastall wrote:

> On Thu, 30 Jun 2005 01:35:01 GMT, Michael Winter
> <m.winter@blueyonder.co.invalid> wrote:
>
>> It doesn't really make a difference either way. Using a type other
>> than text/javascript is likely to leave a script unexecuted
>
> That's my take on the issue ... unless we're discussing what should
> be, rather than what is.

I'm usually partial to those debates :D, but I suppose the only details
I'm interested in here is why didn't this occur sooner.

> Granted, I've never tried using text/js.

I did. After all the text doesn't need to be extensive: a browser will
either do something or it won't, and neither Firefox nor IE did.

> Perhaps the browser would just default to JavaScript, since that's
> likely what it'll do without a MIME type of any kind.

That couldn't be allowed, though. There's no rule saying that
ECMAScript-derivatives are the only scripting languages permissible on
the Web. After all, IE also implements VBScript. So, to simply ignore
the type attribute when specified could result in attempts to execute a
script that truly isn't understood.

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация