Community Forums 

Main Content

w3c validation

    Mar 09 2009 10:14:41



    Join date : 2009-02-19      Posts : 13

    I just ran my site through the w3c validator and got a shed load of errors relating to the use of '&' in the buy now button html.

    The error is: cannot generate system identifier for general entity "product". 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

    It recommends changing '&' to '&'

    A simple '&' is how Mal says to code the 'buy now' button.

    I haven't got my cart running yet but was wondering if anyone else has come across this and if I change to & will it compromise the ordering in any way?

    Mar 09 2009 12:34:19



    Join date : 2008-09-18      Posts : 417

    Using unencoded ampersands in URL query strings is invalid markup. To avoid possible problems it's best to use '&'

    This reference explains why

    Mar 09 2009 14:54:49



    Join date : 2009-02-19      Posts : 13

    Thanks Geoff. I wonder why Mal doesn't show that in his example of setting up a buy now button.