Is it really true the language attribute of the tag <script>

G

George Hester

changes the version of Javascript which would be called? I read that the language attribute can change the version
of Javascript that is executed with respect to just using the type attribute. I believe it has something to do with
type-conversion? Thanks.
 
R

Randy Webb

George said:
changes the version of Javascript which would be called?
Huh?

I read that the language attribute can change the version
of Javascript that is executed with respect to just using
the type attribute.

Yes. The type attribute will cause the browser to use whatever the
latest version is it supports. The language attribute will limit the
browsers that only support that version, or higher. javascript1.2 is
probably the most notable version that causes a major difference in
script, and thats only in NN4.xx
I believe it has something to do with type-conversion?

Nothing to do with type conversion.
 
L

Laurent Bugnion

Hi,

George said:
changes the version of Javascript which would be called? I read that the language attribute can change the version
of Javascript that is executed with respect to just using the type attribute. I believe it has something to do with
type-conversion? Thanks.

Yes, you can use language="JavaScript1.2" to force Netscape browsers
supporting it to use specifically the version 1.2 of JavaScript, for
example. It works with other versions too, but it's usually done with
1.2 because this version is special in Netscape. Version 1.2 has very
specific features which were introduced in the hope of seeing them being
standardized later, but this never happened and the features are only
available in Netscape browsers using the language attribute as above. I
am not even sure these features are still supported in the newest Gecko
based browsers.

The recommendation is to rather use the type attribute ("language" is
deprecated), and to omit the version number, which will force the
browser to use the latest version installed.

HTH,

Laurent
 
L

Laurent Bugnion

Hi John,
JRS: In article <[email protected]>, dated Mon, 13
Dec 2004 10:16:27, seen in Laurent Bugnion



Welcome back!

Well, thank you. I was away from the group because of a big project I
partly coordinated for my firm. It's a web application, written in
ASP.NET with a very important client-side JavaScript layer,
object-oriented as much as possible. Specifically, I was in charge of
coaching the developers (many of them are seasoned programmers but
without JavaScript experience), and developing a framework of controls,
most of them with a server-side (C#) part and a client-side (JavaScript)
part. The project was amazingly interesting technically, and gave me an
deep insight on subjects as various as client-server interaction in HTTP
mode, WebServices (I developed a proxy compatible as well in IE as in
Mozilla), CSS, ASP.NET, etc... That kept me very busy.



I'll take a look!

Laurent
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,040
Latest member
papereejit

Latest Threads

Top