In comp.lang.javascript message <11**********************@e65g2000hsc.go
oglegroups.com>, Tue, 13 Mar 2007 16:20:34, "ja********@gmail.com"
<ja********@gmail.composted:
>On Mar 13, 4:17 pm, "jackcha...@gmail.com" <jackcha...@gmail.com>
wrote:
>I just went across Douglas Crockford's website, and in this page, he
mentions that the type/language attribute is not needed, since it is
the server that determines the MIME type. But according to W3C
document, the type attribute is required and language attribute has
been deprecated.
So I guess the type attribute can be omitted to reduce the file size a
little bit, but in order to be validated, this shouldn't be omitted.
Without that attribute, how do you expect a page that uses mainly
VBscript to recognise that a particular script section is Jscript ?
DC is referring only to included *.js files in that section.
>sorry to include the links
here are the links:
http://javascript.crockford.com/code.html
Some of its requirements conflict with what is agreed appropriate for
code posted here. Here, line-length should where possible be limited to
72 characters, and two (or three) spaces are considered an adequate
indent unit.
Its author is presumably an American, since he uses "international" to
exclude Anglo-American characters; the shorter word "other" could have
been used in the context.
It's a good idea to read the newsgroup and its FAQ. See below.
--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 IE 6
news:comp.lang.javascript FAQ <URL:http://www.jibbering.com/faq/index.html>.
<URL:http://www.merlyn.demon.co.uk/js-index.htmjscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/TP/BP/Delphi/jscr/&c, FAQ items, links.