Bug 866 - Change all script tags to type="text/javascript"
: Change all script tags to type="text/javascript"
Status: RESOLVED FIXED
: Chameleon
Core
: 1.99
: PC Windows XP
: P3 minor
: 2.0 RC 1
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2004-11-24 08:02 by
Modified: 2004-12-09 04:05 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2004-11-24 08:02:14
Most script tags in Chameleon use

<script type="javascript" .... >

better (and valid HTML) would be:

<script type="text/javascript" .... >
------- Comment #1 From 2004-11-24 08:06:39 -------
What I meant is, that the current implementation does not use the required type
attribute for script tags.

Instead it uses language="javscript" most of the times.
------- Comment #2 From 2004-12-02 22:32:16 -------
I've committed a bunch of fixes related to this, I did a big search to find the
script tags and had to manually update most of them ... not sure if I got them
all, will sync cvs in the morning and search again to see if I missed any.
------- Comment #3 From 2004-12-08 20:07:00 -------
Bart, hopefully I understood correctly.  I've committed changes to every file I
could find that had a script tag.  The new tags *should* look like:

<script language="JavaScript" type="text/javascript">

hopefully this is what you intended.  Can you please test with the latest cvs
version and let me know?  Also, if you find problems, can you just go ahead and
commit the changes as you find the problems ...
------- Comment #4 From 2004-12-09 04:05:58 -------
Hi Paul,

this is correct. Language is deprecated though, but I don't see any problem with
leaving it in there.

See:
http://www.w3.org/TR/REC-html40/interact/scripts.html#edef-SCRIPT