PayPal is a great service but unfortunately the code produced by the Merchant Tools in PayPal service is not XHTML compatible. In the Web 2.0 and SEO age, being compatible with W3C standards results in lower loading times, higher traffic, broader compatibility with different platforms and standards compliance across the web.
The PayPal code makes use of the input and img tags without properly closing the tags. Here’s an example of actual code from the PayPal Merchant Tools and the equivalent XHTML compliant code:
Properly closing the tag is as trivial as adding space and the / before the > sign. Try that simple trick in all input and img tags found in the code.
Last thing to do is deleting the border=”0″ attribute placed right after src=”https://www.paypal.com/en_US/i/btn/x-click-butcc-donate.gif” in one of the input tags. Note, that removing the border attribute would probably put a border line around the image depending on the CSS and your site’s layout.
Disclaimer: Although the changes to the PayPal Merchant Tools code will not affect PayPal donation functionality and reliability, please proceed with caution. I’m not responsible for any data and money loss or a Martian spaceship landing on your garden.