validation W3C / & did not start a character reference/ add to cart button

cathy

15 Oct, 2012 06:21 PM

Good evening,

I'm cleaning up my code before finishing my website . On the jigoshop part of the website i have issues with the W3C validation. The problem is located in the link of the add to cart button .

Ajouter au panier

The W3C is not happy with this link and signals:
& did not start a character reference. (& probably should have been escaped as &.)

Any idea of how to fix this issue ? Do youo have the same problem ?

Thanks for any help on this one

Regards

  1. 2 Posted by cathy on 15 Oct, 2012 06:25 PM

    this is the html code [code]

    a href="/shop-4/?add-to-cart=1859&&PHPSESSID=37ea3aed53100678082d447e016de1dd#038;_n=4fae98fd5e" class="button">Ajouter au panier</a>
    

    [/code]

  2. Support Staff 3 Posted by chriscct7 on 15 Oct, 2012 07:26 PM

    chriscct7's Avatar

    The W3C test is validation for HTML websites. You are using a PHP website. The & is an absolutely and allowed character, used in "GET" commands for PHP.

    The W3C's test is not valid for the type of website you are running

    -Chris

  3. 4 Posted by cathy on 15 Oct, 2012 08:28 PM

    thanks !

Reply to this discussion

Internal reply

Formatting help or Preview

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.