W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > October to December 2002

Validation Question for Javascript type attribute

From: Brian Walk <N10BKW1@wpo.cso.niu.edu>
Date: Thu, 24 Oct 2002 09:45:10 -0500
Message-Id: <sdb7c132.007@wpo.cso.niu.edu>
To: "<"<w3c-wai-ig@w3.org>
I am wrapping up a project for a client and running through some last
validation checks, and I have stumbled into a sort of catch-22. I am
hoping someone out there can help me.
 
The project I am working on is required to be Section 508 and SCORM
compliant. The SCORM compliance, in part, requires the use of some
Javascripts which assist in the tracking of the individual learn modules
(or SCOs) and provide other related functions. (I am not an expert on
Javascripts, I just aware that they are needed in this site). They
originally appeared like this:
 
<SCRIPT LANGUAGE="JAVASCRIPT" SRC="../util/APIWrapper.js"></SCRIPT>
<SCRIPT LANGUAGE="JAVASCRIPT" SRC="../util/SCOFunctions.js"></SCRIPT>
 
As I was validating the pages(within Dreamweaver MX), an errormessage
came up saying " in tag: script the following required attributes are
missing: type. So, I went in and added the missing tags, so the lines
now read:
 
<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="text/javascript"
SRC="../util/APIWrapper.js"></SCRIPT>
<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="text/javascript"
SRC="../util/SCOFunctions.js"></SCRIPT>
 
When I then attempted to check for Target Browsers, I get the follow
message: " the type attribute of the Script tag is not supported." This
message appeared when I checked it the following browsers: Netscape
Navigator 4.0 - 6.0, Internet Explorer 3.0 - 6.0, Opera 4.0 - 6.0.
 
This may come off as a question for another listserve, but my concern
is that if the javascript is not correct, it may cause errors in some
screen readers or other assistive technologies. Has anyone run across
this conflict before, or can some one see from this code if something is
not properly marked up?
 
Thanks in advance
 
Brian Walk
 
 
Received on Thursday, 24 October 2002 10:45:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 19 July 2011 18:14:07 GMT