Reply to Re: text/javascript

Your name:

Reply:


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

On 30/06/2005 08:44, John Dunlop wrote:

> I can see one workaround [for unrecognised types:] Write a custom DTD
> in which the <type> attribute of SCRIPT is optional.

I don't really see that working, though. Browsers don't actually read
the DTD, so they're unlikely to care whether you want the type attribute
to be treated optionally. Moreover, and as I said to Ian, an omitted
type attribute is different from a specified, but unrecognised, MIME
type value. The former could permit a reasonable guess (some ECMAScript
derivative), but the latter must cause a script to be ignored.

> Then you can send your javascript files with the MIME type
> <application/javascript> and have them executed by at least some
> browsers.

Care to name any? :)

I could be wrong of course, and I would have no problem with that, but
as I see it these registrations are less than useless for the time being.

Mike

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

[Back to original 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

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