Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2010
    Location
    New South Wales, Australia
    Posts
    228
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default 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"></SCRIPT>

    Example - correct
    <script type="text/javascript" src="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.

  3. #3
    Join Date
    Feb 2010
    Location
    New South Wales, Australia
    Posts
    228
    Plugin Contributions
    0

    Default Re: W3C Validation Problems

    Thanks Rob.

    That did the trick.

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

    Robyn

  4. #4
    Join Date
    Feb 2010
    Location
    New South Wales, Australia
    Posts
    228
    Plugin Contributions
    0

    Default 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?

  5. #5
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default 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.

  6. #6
    Join Date
    Feb 2010
    Location
    New South Wales, Australia
    Posts
    228
    Plugin Contributions
    0

    Default Re: W3C Validation Problems

    All fixed!

    Thank you Vger.

 

 

Similar Threads

  1. W3C validation problem
    By wilson_li in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 19 Aug 2011, 09:01 PM
  2. W3C validation problem
    By wilson_li in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 10 Aug 2011, 12:40 AM
  3. W3C validation
    By slater555 in forum General Questions
    Replies: 1
    Last Post: 2 May 2011, 12:47 AM
  4. w3c validation
    By lieven23 in forum General Questions
    Replies: 14
    Last Post: 15 Nov 2010, 05:36 PM
  5. W3C Validation
    By fantasticals in forum General Questions
    Replies: 4
    Last Post: 18 Apr 2008, 06:14 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR