RE: validating JavaScript

The offending code is below.

BTW - am I correct in replying to www-validator@w3.org and should I include previous threads below in this email? Thanks!



<SCRIPT Language = "JavaScript">
	var wtl_loc = document.URL.indexOf('https:')==0?'https://a248.e.akamai.net/v/248/2120/1d/download.akamai.com/crs/lgsitewise.js':'http://crs.akamai.com/crs/lgsitewise.js';
	document.write("<SCR" + "IPT Language = 'JavaScript' SRC = '" + wtl_loc + "'></SCR" + "IPT>");
</SCRIPT>

<SCRIPT LANGUAGE="JavaScript">

	var wtl_TagVer = 6;
	var wtl_FWD = 0;
	var wtl_url = document.URL;
	var wtl_title = document.title;
	var wtl_TagID = 148699;
	var wtl_SID = "148699";
	var wtl_Offset = "0";
	WTL_TAG = new Image;
	WTL_TAG.ID = "WTL_TAG";

	var ORDER= "";
	var SERVER= "";
	var INVOICE= "";
	var CARTVIEW= "";
	var CARTADD= "";
	var CARTREMOVE= "";
	var CHECKOUT= "";
	var CARTBUY= "";
	var ADCAMPAIGN= "";

	//wtl_Tag6(TAG,SID,wtl_url,wtl_title,"MainContentGroup,SubContentGroup");
	wtl_Tag6(wtl_TagID,wtl_SID,wtl_url,wtl_title);

</SCRIPT>

<NOSCRIPT>
<IMG BORDER="0" WIDTH="1" HEIGHT="1" SRC="http://statse.webtrendslive.com/S148699/button6.asp?tagver=6&si=148699&offset=0&fw=0&js=No&">
</NOSCRIPT>




* Jake Brumby wrote:
>I recently put in a lot of effort to develop a website only to have
>to include some JavaScript supplied by Akamai for tracking users that
>the Validator finds 17 different errors in. The code must go in every
>page for the SiteWise tacking program to operate. I told my client about
>this and they followed it up with Akamai. The response I have receive is:
> 
>"The HTML specification does not cover JavaScript.  However, the
>Validator does not recognize JavaScript code from HTML and attempts
>to "validate" it as HTML.  The SiteWise code has been tested with all
>common browser versions and can be used without concern for its function
>or performance."
> 
>Is this correct?

What's the offending code?

Received on Thursday, 3 July 2003 16:08:13 UTC