w3c validation

Status
Not open for further replies.

shakemelikeapig

New Member
I got errors with w3c validation for html with javasript and it variables definitions are not good for w3c validation. These javascript codes are from ad snippets from ad company on my sites which I can't change.
Please tell me how to fix the error. You can check bit.ly/H7zuPj for w3c validation errors.
 

nathan.joshua

New Member
You can use tags to exclude JavaScript from validators.

start tag is:
//<![CDATA[
end tag is:
//]]>

This is an example of how I use it:

<script type="text/javascript">
//<![CDATA[
$.easing.custom = function (x, t, b, c, d) {
var s = 1.20158;
if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
}
$("div.scrollable").scrollable({easing: 'custom', speed: 1800, circular: true});
//]]>
</script>






Hope this helps!
 

shakemelikeapig

New Member
You can use tags to exclude JavaScript from validators.

start tag is:
//<=!=[=C=D=A=T=A=[
end tag is:
//]=]=>

This is an example of how I use it:

<script type="text/javascript">
//<=!=[=C=D=A=T=A=[
$.easing.custom = function (x, t, b, c, d) {
var s = 1.20158;
if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
}
$("div.scrollable").scrollable({easing: 'custom', speed: 1800, circular: true});
//]=]=>
</script>




Hope this helps!
How to put cdata within javascript codes? You can check the w3c by bit.ly/H7zuPj

error:

Line 44, Column 71: cannot generate system identifier for general entity "serid"
…ix.com/adserver8strip.php?userid=9146&serid=XBVZZTXP691204Z&channelid=john3825…
Also, please tell me how to fix the other errors. 44 errors and 15 warnings.
 
Status
Not open for further replies.
Award-winning Mac antivirus and Internet security software
Top