Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / W3C Validation Problems

W3C Validation Problems

Views: 1,203

Results 1 to 6 of 6
28 Jun 2011, 11:21 PM
#1
robbie269 avatar

robbie269

Zen Follower

Join Date:
Feb 2010
Location:
New South Wales, Australia
Posts:
228
Plugin Contributions:
0

W3C Validation Problems

I ran the W3C validation today and got a few errors and warnings.

I fixed a few of them but still have about 13 errors. The remainder mainly have to do with the geotrust seal and the paypal seal in my blank side box.

Have I done something wrong in putting the code where I did, is there a better way?

www. thehorsestall. com. au

29 Jun 2011, 9:35 AM
#2
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: W3C Validation Problems

When using XHTML, such as Zen Cart does, you cannot use Capital letters within HTML tags.

Example - wrong

<SCRIPT LANGUAGE="javascript" TYPE="text/javascript" SRC="[//smarticon.geotrust.com/si.js](http://www.zen-cart.com/forum/view-source:http://smarticon.geotrust.com/si.js)"></SCRIPT>

Example - correct

<script type="text/javascript" src="http:[//smarticon.geotrust.com/si.js](http://www.zen-cart.com/forum/view-source:http://smarticon.geotrust.com/si.js)"></script>

You'll also noticed I removed LANGUAGE="javascript" which is not needed and also fixed the link to read src="http://smarticon.geotrust.com/si.js"

Correct the other Capitalization's and re-validate.

29 Jun 2011, 9:38 PM
#3
robbie269 avatar

robbie269

Zen Follower

Join Date:
Feb 2010
Location:
New South Wales, Australia
Posts:
228
Plugin Contributions:
0

Re: W3C Validation Problems

Thanks Rob.

That did the trick.

One question: why do you add the http: to the link?

Robyn

29 Jun 2011, 10:22 PM
#4
robbie269 avatar

robbie269

Zen Follower

Join Date:
Feb 2010
Location:
New South Wales, Australia
Posts:
228
Plugin Contributions:
0

Re: W3C Validation Problems

I only have 1 error now. And it seems to relate to my template, which is Cherry Zen. Should I bother trying to fix it or is one error OK?

29 Jun 2011, 10:53 PM
#5
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: W3C Validation Problems

Any images or javascript which are pulled into your site from off-site locations should always have https addresses (if the content appears on https pages). The reason being that content pulled in from http addresses will cause security warnings when switching from http to https pages.

For instance src="http://smarticon.geotrust.com/si.js"> should be src="https://smarticon.geotrust.com/si.js">

Vger

p.s. As the error remaining is just a missing div tag I'd recommend you correct it.

29 Jun 2011, 11:19 PM
#6
robbie269 avatar

robbie269

Zen Follower

Join Date:
Feb 2010
Location:
New South Wales, Australia
Posts:
228
Plugin Contributions:
0

Re: W3C Validation Problems

All fixed!

Thank you Vger.