Login | Register | FAQ
Anonymous

Does JavaScript Validate

+ Post a reply

3 posts Page 1 of 1


Re: Does JavaScript Validate

by mariaantonietta » Wed Feb 01, 2012 2:10 pm

Hi CubeSquare,

I don't understand your delimiter example. Could you please expand on it, perhaps with a couple of illustrations?

Regarding your general question, that is, does JavaScript validate, then my view is that it depends on what you mean by validation. If you mean the same as you do with HTML and CSS, that is, you rely on the W3C validator letting you know whether your mark-up or stylesheet conforms to their accepted standards, then the answer would be 'No'. In fact, there is no such service offered by the W3C in connection with JS. However, JavaScript is a programming language, and as such, it's prone to bugs, which can be syntax-related bugs (e.g., you miss a semicolon at the end of a statement, or a curly bracket, etc.), or a run-time bug, that is, an error that manifests itself only at the time the program runs. Besides bugs, you also find what are known as best programming practices, which evolve with the language and can be more or less complied with.

Therefore, rather than validated, I'd say that JavaScript should be thoroughly tested for bugs, and for this various tools can be used: a simple alert box is great to test the return value of a variable, or for a more sophisticated approach you can use Firebug or any other browser-specific JavaScript developer tool. In addition to this, I think that if your code is also readable and easily maintainable, then you've done your job as a developer. However, this is my view. I know some professionals use an online tool called jSLint to test their JavaScript code quality. But to be of any use, it's important to know your goals and to adjust the initial settings accordingly.

To conclude, I think web development has a component of subjectivity and absolutes can be limiting and ultimately self-defeating.

CubeSquare wrote:For example,

When JavaScript starts with a delimeter, can the delimeter be fleshed out and the JavaScript validated?

-CubeSquare
User avatar

mariaantonietta

  • Posts: 64
  • Joined: Mon Oct 31, 2011 7:23 pm

Re: Does JavaScript Validate

by mariaantonietta » Thu Feb 02, 2012 2:43 pm

Hi CubeSquare,

Just had a look at the website in question. Because the doctype is XHTML strict, I think that all script tags containing JavaScript should be put inside CDATA expressions:

Code: Select all
  <script type="text/javascript">
//<![CDATA[
  script here.
//]]>
</script>


Some of the scripts on the page comply with this, others don't and seem to be causing most of the problems. Perhaps including CDATA might mitigate the errors. Also, keep in mind that some external JavaScript code needed to include ready-made widgets on the page might cause the W3C validator to throw all sorts of errors. However, this doesn't always reflect real bugs or coding mistakes.

CubeSquare wrote:Hello mariaantonietta,

Thank-you for your reply. The question originated from "Please review my website! Thank-You.", currently viewing in the mix. The website had an extraordinary amount of errors due to JavaScript. I have been successful and not successful in trying to solve problems of this nature. So, I was wondering if you could help. You did! Thank-You.

If you would, please, have a look at "Please review my website! Thank-You." Because, I feel that some of this will validate. Right now, it's presenting errors!

-CubeSquare
User avatar

mariaantonietta

  • Posts: 64
  • Joined: Mon Oct 31, 2011 7:23 pm

Re: Does JavaScript Validate

by mariaantonietta » Fri Feb 03, 2012 12:16 pm

Hi CubeSquare,

It's a nightmare, it takes way too much time to go through it piece by piece but that would be the only way to unravel the mess. In any case, the W3C mark-up validator doesn't validate JavaScript, only mark-up. Therefore, if some errors seem JavaScript-related this would be either because the document doesn't use CDATA (which, by the way, it's used to explicitly tell the XHTML strict parser that the characters in the script are NOT to be considered as part of the mark-up, therefore they have to be ignored), or because the JavaScript code outputs some invalid XHTML mark-up.

What I could do was to try to eliminate as much of the scripts on the page as possible and submit the remaining mark-up to the validator again. It turns out that there are about 33 errors, mostly related to the mark-up. The arduous job would now be to amend the mark-up until it validates, and only then try to include each piece of JavaScript code until one comes up with the incriminating ones, that is, those that output invalid mark-up. It's a huge undertaking. Here's the file that I pasted into the validator input area.


CubeSquare wrote:Hello mariaantonietta,

I have continued to work on validating this website, because that's how I learn.
The first thing I ran into was something similar to a BOM, that was set to the beginning of the Danish text. However, I have not been able to reproduce this text, that looked like "x234", where "x234" could be any combination of letters or numbers.

After clearing these numbers, I was finally able to start working on the website itself. And, I have cleared my way through line 182. All I've been doing is adding a semi-colon to &lang;= or, adding "amp;" to an Ampersand. There have been a couple of instances of < being replaced by &lt; and a couple of instances of simply errasing an ">".

Since there are more than 800 lines of code, most of it over my head, it will take me several days to validate it. My question is simply, "What on earth am I doing".

This is not entering the code as CDATA, (which I do not fully understand), yet, I seem to be correcting the syntax so that it will validate. Any insight you can lend me will really help!

Here is a copy of what I have so far:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="da" lang="da">
<head>
<title>Time-book.dk Gratis Online Booking system. F medlemsrabat</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="description" content="Time-book.dk Gratis Online Booking system. F medlemsrabat. Danmarks nye booking portal. Her kan du finde Frisrer, Massrer og meget mere i dit nromrde." />
<meta name="keywords" content="Time-book.dk, Gratis, Online, Booking, system, medlemsrabat,
" />
<meta name="robots" content="INDEX,FOLLOW" />
<link rel="icon" href="http://time-book.dk/media/favicon/default/favicon_2.ico" type="image/x-icon" />
<link rel="shortcut icon" href="http://time-book.dk/media/favicon/default/favicon_2.ico" type="image/x-icon" />
<!--[if lt IE 7]>
<script type="text/javascript">
//<![CDATA[
var BLANK_URL = 'http://time-book.dk/js/blank.html';
var BLANK_IMG = 'http://time-book.dk/js/spacer.gif';
//]]>
</script>
<![endif]-->
<script type="text/javascript">

/* var store_key = '455e3889-3ebe-4262-b4f1-f6244b0ec9cd';
var lang = 'da_DK';

(function () {
var qs = "?store_key=" + store_key + "&lang;=" + lang;
var fs = document.createElement('script');
fs.type = 'text/javascript';
fs.async = true;
fs.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'svc.finz.it/tab/Tabscript.aspx' + qs;
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(fs, s);
})();*/


function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&amp;&amp;i&lt;a.length&amp;&amp;(x=a[i])&amp;&amp;x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i&lt;a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))0&amp;&amp;parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&amp;&amp;d.all) x=d.all[n]; for (i=0;!x&amp;&amp;id.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&amp;&amp;d.layers&amp;&amp;id.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x &amp;&amp; d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

</script>
<link rel="stylesheet" type="text/css" href="http://time-book.dk/media/css/7bb52f3ff9ec11813ff28ba4cda350e7.css" media="all" />
<link rel="stylesheet" type="text/css" href="http://time-book.dk/media/css/2a9e94a92d8ac3042e061ac5616b0567.css" media="print" />
<script type="text/javascript" src="http://time-book.dk/js/jquery.js"></script>
<script type="text/javascript" src="http://time-book.dk/js/jquery.dimensions.js"></script>
<script type="text/javascript" src="http://time-book.dk/js/jquery.jgd.dropdown.min.js"></script>
<script type="text/javascript" src="http://time-book.dk/js/jquery.lightbox-0.5.js"></script>
<script type="text/javascript" src="http://time-book.dk/js/prototype/prototype.js"></script>
<script type="text/javascript" src="http://time-book.dk/js/lib/ccard.js"></script>
<script type="text/javascript" src="http://time-book.dk/js/prototype/validation.js"></script>
<script type="text/javascript" src="http://time-book.dk/js/scriptaculous/builder.js"></script>
<script type="text/javascript" src="http://time-book.dk/js/scriptaculous/effects.js"></script>
<script type="text/javascript" src="http://time-book.dk/js/scriptaculous/dragdrop.js"></script>
<script type="text/javascript" src="http://time-book.dk/js/scriptaculous/controls.js"></script>
<script type="text/javascript" src="http://time-book.dk/js/scriptaculous/slider.js"></script>
<script type="text/javascript" src="http://time-book.dk/js/varien/js.js"></script>
<script type="text/javascript" src="http://time-book.dk/js/varien/form.js"></script>
<script type="text/javascript" src="http://time-book.dk/js/varien/menu.js"></script>
<script type="text/javascript" src="http://time-book.dk/js/mage/translate.js"></script>
<script type="text/javascript" src="http://time-book.dk/js/mage/cookies.js"></script>
<script type="text/javascript" src="http://time-book.dk/js/fbintegrator/fbintegrator.js"></script>
<script type="text/javascript" src="http://time-book.dk/js/auit/actionbox/scroller.js"></script>

<script type="text/javascript" src="http://time-book.dk/skin/frontend/default/timebook/js/twitter.js"></script>
<!--[if lt IE 8]>
<link rel="stylesheet" type="text/css" href="http://time-book.dk/media/css/3c21d6d5a669c65196374fa84dd63a45.css" media="all" />
<![endif]-->
<!--[if lt IE 7]>
<script type="text/javascript" src="http://time-book.dk/js/lib/ds-sleight.js"></script>
<script type="text/javascript" src="http://time-book.dk/skin/frontend/base/default/js/ie6.js"></script>
<![endif]-->

<script type="text/javascript">
//<![CDATA[
optionalZipCountries = [];
//]]>
</script>
<script type="text/javascript">
//<![CDATA[
window.HDUSeed='721012b45cf73540c512345adf449dc9';
window.HDUSeedIntId = setInterval(function(){
if (document.observe) {
document.observe('dom:loaded', function(){
for (var i = 0; i < document.forms.length; i++) {
if (document.forms[i].getAttribute('action') && document.forms[i].getAttribute('action').match('contacts/index/post')) {
var el = document.createElement('input');
el.type = ('hidden');
el.name = 'hdu_seed';
el.value = window.HDUSeed;
document.forms[i].appendChild(el);

}
}
});
clearInterval(window.HDUSeedIntId)
}
}, 100)
//]]>
</script>
<script type="text/javascript">var Translator = new Translate({"Please select an option.":"V\u00e6lg venligst en af mulighederne.","This is a required field.":"Feltet skal udfyldes.","Please enter a valid number in this field.":"Indtast venligst kun heltal i dette felt.","Please use letters only (a-z) in this field.":"Feltet m\u00e5 kun indeholde bogstaver (a-z)","Please use only letters (a-z), numbers (0-9) or underscore(_) in this field, first character should be a letter.":"Brug kun bogstaver (a-z) eller heltal (0-9) eller underscore (_) i dette felt., f\u00f8rste karakter skal v\u00e6re et bogstav.","Please use only letters (a-z) or numbers (0-9) only in this field. No spaces or other characters are allowed.":"Feltet m\u00e5 kun indeholde bogstaver (a-z) eller heltal (0-9). Mellemrum eller andre karakterer er ikke tilladt.","Please use only letters (a-z) or numbers (0-9) or spaces and # only in this field.":"Feltet m\u00e5 kun indeholde bogstaver (a-z), heltal (0-9), mellemrum og nummertegn (#).","Please enter a valid phone number. For example (123) 456-7890 or 123-456-7890.":"Indtast venligst et gyldigt telefonnummer, eks. (+45) 10 10 10 10","Please enter a valid date.":"Indtast venligst en gyldig dato.","Please enter a valid email address. For example johndoe@domain.com.":"Ugyldig e-mailadresse","Please enter 6 or more characters.":"Indtast venligst 6 eller flere karakterer.","Please make sure your passwords match.":"Verificer venligst at dine kodeord er ens.","Please enter a valid URL. Protocol is required (http:\/\/, https:\/\/ or ftp:\/\/)":"Indtast en gyldig URL. Protokol er obligatorisk (http:\/\/, https:\/\/ eller ftp:\/\/)","Please enter a valid URL. For example http:\/\/www.example.com or http://www.example.com":"Skriv en gyldig URL, f.eks. http:\/\/www.eksempel.dk or http://www.eksempel.dk","Please enter a valid social security number. For example 123-45-6789.":"Indtast venligst et gyldigt CPR-nummer, eks. 190570-2369.","Please enter a valid zip code. For example 90602 or 90602-1234.":"Indtast venligst et gyldigt postnummer, eks. 6430 eller 8000.","Please enter a valid zip code.":"Indtast venligst et gyldigt postnummer.","Please use this date format: dd\/mm\/yyyy. For example 17\/03\/2006 for the 17th of March, 2006.":"Brug venligst dette datoformat: dd\/mm\/yyyy, eks. 17\/03\/2006 for d. 17. marts 2006.","Please enter a valid $ amount. For example $100.00.":"V\u00e6lg venligst et gyldigt bel\u00f8b i kr. For eksempel kr. 100,00.","Please select one of the above options.":"V\u00e6lg venligst en af mulighederne ovenfor","Please select one of the options.":"V\u00e6lg venligst en af mulighederne","Please select State\/Province.":"V\u00e6lg venligst region","Please enter valid password.":"Indtast venligst et gyldigt kodeord.","Please enter 6 or more characters. Leading or trailing spaces will be ignored.":"Indtast venligst 6 eller flere karakterer. Mellemrum f\u00f8r og efter ignoreres.","Please use letters only (a-z or A-Z) in this field.":"Brug kun bogstaver (a-z or A-Z) i dette felt.","Please enter a number greater than 0 in this field.":"Indtast venligst et tal st\u00f8rre end 0.","Please enter a valid credit card number.":"Indtast venligst et gyldigt kreditkortnummer.","Please wait, loading...":"Vent venligst, henter data...","Please choose to register or to checkout as a guest":"V\u00e6lg venligst registrering eller bestilling som g\u00e6st","Error: Passwords do not match":"Fejl: Passwords stemmer ikke overens","Your order cannot be completed at this time as there is no shipping methods available for it. Please make necessary changes in your shipping address.":"Din ordre kan ikke gennemf\u00f8res i \u00f8jeblikket, da der ikke er nogen tilg\u00e6ngelige leveringsmetoder. Pr\u00f8v evt. at skrive en anden leveringsadresse.","Please specify shipping method.":"V\u00e6lg venligst en leveringsmetode.","Your order cannot be completed at this time as there is no payment methods available for it.":"Din ordre kan ikke gennemf\u00f8res i \u00f8jeblikket, da der ikke er nogen tilg\u00e6ngelige betalingsmetoder.","Please specify payment method.":"V\u00e6lg venligst en betalingsmetode.","Credit card number does not match credit card type.":"Kortnummer stemmer ikke overens med korttype.","Card type does not match credit card number.":"Korttype stemmer ikke overens med kortnummer.","Please enter a valid credit card verification number.":"Indtast venligst en gyldig verifikationskode (CVC).","Please use only letters (a-z or A-Z), numbers (0-9) or underscore(_) in this field, first character should be a letter.":"Feltet m\u00e5 kun indeholde bogstaver (a-z or A-Z), tal (0-9) eller underscore (_), og f\u00f8rste tegn skal v\u00e6re et bogstav.","Please input a valid CSS-length. For example 100px or 77pt or 20em or .5ex or 50%.":"Angiv venligst en gyldig CSS-l\u00e6ngde. For eksempel 100px, 77pt, 20em, .5ex eller 50%.","Maximum length exceeded.":"Maksimal l\u00e6ngde overskredet.","Your session has been expired, you will be relogged in now.":"Din session er udl\u00f8bet, og du vil nu blive logget ind igen.","Incorrect credit card expiration date.":"Forkert udl\u00f8bsdato for kort.","This date is a required value.":"Denne dato skal udfyldes.","The value is not within the specified range.":"V\u00e6rdien er ikke inden for det angivne interval.","Please use only letters (a-z or A-Z) or numbers (0-9) only in this field. No spaces or other characters are allowed.":"Brug kun bogstaver (a-z eller A-Z) eller tal (0-9) i dette felt. Ingen mellemrum eller andre tegn.","Please use only letters (a-z or A-Z) or numbers (0-9) or spaces and # only in this field.":"Brug kun bogstaver (a-z eller A-Z) eller tal (0-9) eller mellemrum og # i dette felt.","Please enter a valid fax number. For example (123) 456-7890 or 123-456-7890.":"Indtast et gyldigt faxnummer. F.eks. 12 34 56 78","Please use only visible characters and spaces.":"Brug kun synlige tegn og mellemrum.","Please enter 7 or more characters. Password should contain both numeric and alphabetic characters.":"Indtast mindst 7 tegn. Adgangskoden skal indeholde b\u00e5de tal og bogstaver.","Please enter a valid URL Key. For example \"example-page\", \"example-page.html\" or \"anotherlevel\/example-page\".":"Indtast en gyldig URL-n\u00f8gle. F.eks. \"min-side\", \"min-side.html\" eller \"min-side\/min-underside\".","Please enter a valid XML-identifier. For example something_1, block5, id-4.":"Indtast et gyldigt XML-id. F.eks. blok_1, block5, id-4.","Please enter a number 0 or greater in this field.":"Indtast et tal st\u00f8rre end 0 i dette felt.","Text length does not satisfy specified text range.":"Tekstl\u00e6ngden er ikke inden for det angivne interval.","Please enter a number lower than 100.":"Indtast venligst et tal mindre end 100.","Please enter issue number or start date for switch\/solo card type.":"Indtast udstedelsesnummer eller startdato for switch\/solo korttypen."});</script><script type="text/javascript">
jQuery(document).ready(function(){

//jQuery("ul.tabs li:first").addClass("active");//.show(); //Activate first tab
jQuery("ul.tabs li").click(function() {

jQuery("ul.tabs li").removeClass("active"); //Remove any "active" class
var catid = jQuery(this).attr('id');
jQuery("#cat_id").val(catid);
jQuery(this).addClass("active"); //Add "active" class to selected tab

return false;
});

});
</script>

<script type="text/javascript">
jQuery(document).ready(function(){

jQuery("select#cat_id").jgdDropdown({
/*clsLIExpand: false,
clsLISelected: 'hide_selected',
initTitle: 'Vlg kategori'*/
});

jQuery("select#vendor_list").jgdDropdown({
/* clsLIExpand: false,
clsLISelected: 'hide_selected',
initTitle: 'Vlg'*/
});

jQuery("select#sorting").jgdDropdown({
/*clsLIExpand: false,
clsLISelected: 'hide_selected',
initTitle: 'Vlg Sortering'*/
});

});
</script>
</head>
<body class=" cms-index-index cms-home" onload="MM_preloadImages('images/dot_over.jpg','images/dot.jpg')">

<!-- BEGIN GOOGLE ANALYTICS CODE -->
<script type="text/javascript">
//<![CDATA[
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);
})();

var _gaq = _gaq || [];

_gaq.push(function() {
// the global variable is created intentionally
pageTracker = _gat._getTracker('UA-25823091-1');
pageTracker._trackPageview();
});


//]]>
</script>
<!-- END GOOGLE ANAnd theseALYTICS CODE --> <div id="main_wrapper" class="clearfix">
<div id="">


And, these are the lines that I have fixed so far. Please explain, "What am I doing?"

↑ Top
Validation Output: 77 Errors

Warning Line 26, Column 51: reference not terminated by REFC delimiter

var qs = "?store_key=" + store_key + "&lang=" + lang;



If you meant to include an entity that starts with "&", then you should terminate it with ";". Another reason for this error message is that you inadvertently created an entity by failing to escape an "&" character just before this text.
Warning Line 36, Column 38: character "&" is the first character of a delimiter but occurred as data

var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=…



This message may appear in several cases:
You tried to include the "<" character in your page: you should escape it as "&lt;"
You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
Another possibility is that you forgot to close quotes in a previous tag.
Warning Line 36, Column 40: cannot generate system identifier for general entity "i"

… var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=…



An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (;). The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".

Entity references start with an ampersand (&) and end with a semicolon (;). If you want to use a literal ampersand in your document you must encode it as "&amp;" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and &aelig; are different characters.

If this error appears in some markup generated by PHP's session handling code, this article has explanations and solutions to your problem.

Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed.
Error Line 36, Column 40: general entity "i" not defined and no default entity

… var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=…



This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
Warning Line 36, Column 41: reference not terminated by REFC delimiter

…var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x…



If you meant to include an entity that starts with "&", then you should terminate it with ";". Another reason for this error message is that you inadvertently created an entity by failing to escape an "&" character just before this text.
Error Line 36, Column 41: reference to entity "i" for which no system identifier could be generated

…var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x…



This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
Info Line 36, Column 39: entity was defined here

var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=…

Error Line 36, Column 50: character "&" not allowed in attribute specification list

…,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;


Error Line 36, Column 50: element "a.length" undefined

…,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;



You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:
incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case).
Warning Line 36, Column 51: character "&" is the first character of a delimiter but occurred as data

…,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;



This message may appear in several cases:
You tried to include the "<" character in your page: you should escape it as "&lt;"
You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
Another possibility is that you forgot to close quotes in a previous tag.
Warning Line 36, Column 60: character "&" is the first character of a delimiter but occurred as data

…,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;



This message may appear in several cases:
You tried to include the "<" character in your page: you should escape it as "&lt;"
You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
Another possibility is that you forgot to close quotes in a previous tag.
Warning Line 36, Column 62: cannot generate system identifier for general entity "x.oSrc"

…,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;



An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (;). The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".

Entity references start with an ampersand (&) and end with a semicolon (;). If you want to use a literal ampersand in your document you must encode it as "&amp;" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and &aelig; are different characters.

If this error appears in some markup generated by PHP's session handling code, this article has explanations and solutions to your problem.

Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed.
Error Line 36, Column 62: general entity "x.oSrc" not defined and no default entity

…,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;



This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
Error Line 36, Column 68: reference to entity "x.oSrc" for which no system identifier could be generated

…,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;



This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
Info Line 36, Column 61: entity was defined here

…,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;

Error Line 40, Column 76: character ";" not allowed in attribute specification list

… var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)


Error Line 40, Column 76: element "a.length" undefined

… var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)



You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:
incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case).
Warning Line 45, Column 57: character "&" is the first character of a delimiter but occurred as data

…var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {



This message may appear in several cases:
You tried to include the "<" character in your page: you should escape it as "&lt;"
You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
Another possibility is that you forgot to close quotes in a previous tag.
Warning Line 45, Column 59: cannot generate system identifier for general entity "parent.frames.length"

…var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {



An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (;). The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".

Entity references start with an ampersand (&) and end with a semicolon (;). If you want to use a literal ampersand in your document you must encode it as "&amp;" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and &aelig; are different characters.

If this error appears in some markup generated by PHP's session handling code, this article has explanations and solutions to your problem.

Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed.
Error Line 45, Column 59: general entity "parent.frames.length" not defined and no default entity

…var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {



This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
Warning Line 45, Column 79: reference not terminated by REFC delimiter

…var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {



If you meant to include an entity that starts with "&", then you should terminate it with ";". Another reason for this error message is that you inadvertently created an entity by failing to escape an "&" character just before this text.
Error Line 45, Column 79: reference to entity "parent.frames.length" for which no system identifier could be generated

…var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {



This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
Info Line 45, Column 58: entity was defined here

…var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {

Warning Line 47, Column 15: character "&" is the first character of a delimiter but occurred as data

if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms…



This message may appear in several cases:
You tried to include the "<" character in your page: you should escape it as "&lt;"
You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
Another possibility is that you forgot to close quotes in a previous tag.
Warning Line 47, Column 17: cannot generate system identifier for general entity "d.all"

if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms…



An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (;). The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".

Entity references start with an ampersand (&) and end with a semicolon (;). If you want to use a literal ampersand in your document you must encode it as "&amp;" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and &aelig; are different characters.

If this error appears in some markup generated by PHP's session handling code, this article has explanations and solutions to your problem.

Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed.
Error Line 47, Column 17: general entity "d.all" not defined and no default entity

if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms…



This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
Warning Line 47, Column 22: reference not terminated by REFC delimiter

if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms…



If you meant to include an entity that starts with "&", then you should terminate it with ";". Another reason for this error message is that you inadvertently created an entity by failing to escape an "&" character just before this text.
Error Line 47, Column 22: reference to entity "d.all" for which no system identifier could be generated

if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms…



This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
Info Line 47, Column 16: entity was defined here

if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms…

Warning Line 47, Column 47: character "&" is the first character of a delimiter but occurred as data

…x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];



This message may appear in several cases:
You tried to include the "<" character in your page: you should escape it as "&lt;"
You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
Another possibility is that you forgot to close quotes in a previous tag.
Warning Line 47, Column 50: reference not terminated by REFC delimiter

…x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];



If you meant to include an entity that starts with "&", then you should terminate it with ";". Another reason for this error message is that you inadvertently created an entity by failing to escape an "&" character just before this text.
Error Line 47, Column 50: reference to entity "i" for which no system identifier could be generated

…x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];



This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
Info Line 36, Column 39: entity was defined here

var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=…

Error Line 47, Column 65: character ";" not allowed in attribute specification list

…x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];


Error Line 47, Column 65: element "d.forms.length" undefined

…x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];



You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:
incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case).
Warning Line 48, Column 13: character "&" is the first character of a delimiter but occurred as data

for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].docum…



This message may appear in several cases:
You tried to include the "<" character in your page: you should escape it as "&lt;"
You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
Another possibility is that you forgot to close quotes in a previous tag.
Warning Line 48, Column 15: cannot generate system identifier for general entity "d.layers"

for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].docum…



An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (;). The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".

Entity references start with an ampersand (&) and end with a semicolon (;). If you want to use a literal ampersand in your document you must encode it as "&amp;" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and &aelig; are different characters.

If this error appears in some markup generated by PHP's session handling code, this article has explanations and solutions to your problem.

Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed.
Error Line 48, Column 15: general entity "d.layers" not defined and no default entity

for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].docum…



This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
Warning Line 48, Column 23: reference not terminated by REFC delimiter

for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].docum…



If you meant to include an entity that starts with "&", then you should terminate it with ";". Another reason for this error message is that you inadvertently created an entity by failing to escape an "&" character just before this text.
Error Line 48, Column 23: reference to entity "d.layers" for which no system identifier could be generated

for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].docum…



This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
Info Line 48, Column 14: entity was defined here

for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].docum…

Warning Line 48, Column 23: character "&" is the first character of a delimiter but occurred as data

for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].docum…



This message may appear in several cases:
You tried to include the "<" character in your page: you should escape it as "&lt;"
You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
Another possibility is that you forgot to close quotes in a previous tag.
Warning Line 48, Column 26: reference not terminated by REFC delimiter

for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].docum…



If you meant to include an entity that starts with "&", then you should terminate it with ";". Another reason for this error message is that you inadvertently created an entity by failing to escape an "&" character just before this text.
Error Line 48, Column 26: reference to entity "i" for which no system identifier could be generated

for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].docum…



This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
Info Line 36, Column 39: entity was defined here

var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=…

Error Line 48, Column 42: character ";" not allowed in attribute specification list

…or(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].documen…


Error Line 48, Column 42: element "d.layers.length" undefined

…or(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].documen…



You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:
incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case).
Warning Line 49, Column 9: character "&" is the first character of a delimiter but occurred as data

if(!x && d.getElementById) x=d.getElementById(n); return x;



This message may appear in several cases:
You tried to include the "<" character in your page: you should escape it as "&lt;"
You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
Another possibility is that you forgot to close quotes in a previous tag.
Warning Line 49, Column 10: character "&" is the first character of a delimiter but occurred as data

if(!x && d.getElementById) x=d.getElementById(n); return x;



This message may appear in several cases:
You tried to include the "<" character in your page: you should escape it as "&lt;"
You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
Another possibility is that you forgot to close quotes in a previous tag.
Warning Line 53, Column 76: character "<" is the first character of a delimiter but occurred as data

…=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)



This message may appear in several cases:
You tried to include the "<" character in your page: you should escape it as "&lt;"
You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
Another possibility is that you forgot to close quotes in a previous tag.
Error Line 57, Column 9: end tag for "d.layers.length" omitted, but OMITTAG NO was specified

</script>



You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
Info Line 48, Column 26: start tag was here

for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].docum…

Error Line 57, Column 9: end tag for "d.forms.length" omitted, but OMITTAG NO was specified

</script>



You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
Info Line 47, Column 50: start tag was here

…x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];

Error Line 57, Column 9: end tag for "a.length" omitted, but OMITTAG NO was specified

</script>



You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
Info Line 40, Column 67: start tag was here

… var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)

Error Line 57, Column 9: end tag for "a.length" omitted, but OMITTAG NO was specified

</script>



You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
Info Line 36, Column 41: start tag was here

…var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x…

Error Line 179, Column 12: syntax of attribute value does not conform to declared value

<div id="">



The value of an attribute contained something that is not allowed by the specified syntax for that type of attribute. For instance, the “selected” attribute must be either minimized as “selected” or spelled out in full as “selected="selected"”; the variant “selected=""” is not allowed.



Accordingly, line 179 is not resolved. This is just to give you an idea of what I'm doing.
Again, I wish you could explain it to me since I can hardly explain it to myself.

-CubeSquare

Attachments

  1. sitevalidation.zip (11.64 KiB) Downloaded 2103 times

User avatar

mariaantonietta

  • Posts: 64
  • Joined: Mon Oct 31, 2011 7:23 pm


+ Post a reply

Page 1 of 1