Re: Javascript Quiz
- From: "Richard Cornford" <Richard@xxxxxxxxxxxxxxxxxxx>
- Date: Fri, 13 Nov 2009 15:07:54 -0000
Matthias Reuter wrote:
Jorge wrote:
2.- Don't browsers default to type="text/javascript", anyway ?
If I remember correctly, at the time the type attribute was introduced,
no official mime type for java-/ecmascript existed. "text/javascript"
seems to be the most common value,
It was the value used in the HTML specs, so in the absence of anything 'more official' it became the value commonly used.
but many more are in use. I think no browser cares for which value is given,
IE cares, at least it directly supports (in its (and the OS's) default configuration) text/vbscript, with an option for any script language to be implemented if the registry maps a MIME-style name to a DLL that supports the Windows scripting interface/API (at least that was true up until the time of JScript 5.6, the extent to which it is still true is not something that I have had reason to look into).
they all assume ecmascript. This is also true if no type attribute is given.<snip>
IE varies the default depending on context. If your first SCRIPT element is TYPE="text/vbscript" then any un-stated/unqualified following script elements (and intrinsic event attributes that are not qualified (with - javascript:/vbscript:)) will be interpreted as vbscript.
Though that really has no relevance for web clients, where vbscript would not be used.
Richard.
.
- References:
- Javascript Quiz
- From: Additya
- Re: Javascript Quiz
- From: Osmo Saarikumpu
- Re: Javascript Quiz
- From: Peter Michaux
- Re: Javascript Quiz
- From: Stefan Weiss
- Re: Javascript Quiz
- From: Thomas 'PointedEars' Lahn
- Re: Javascript Quiz
- From: Lasse Reichstein Nielsen
- Re: Javascript Quiz
- From: Jorge
- Re: Javascript Quiz
- From: Matthias Reuter
- Javascript Quiz
- Prev by Date: Re: Execution context, Identifier resolution, Variable instantiation
- Next by Date: Re: Javascript Quiz
- Previous by thread: Re: Javascript Quiz
- Next by thread: Re: Javascript Quiz
- Index(es):
Relevant Pages
|