Welcome to WebmasterWorld Guest from

Forum Moderators: martinibuster

Message Too Old, No Replies

Del.icio.us Save Button

Code not validating on W3C HTML validator

12:11 pm on Jan 15, 2007 (gmt 0)

Junior Member

10+ Year Member

joined:Aug 8, 2002
votes: 0

This is probably a dumb question as my coding is pretty basic by the standards of most posters on this board.

I decided to try and increase my links from del.icio.us by copying the following code into the footer of each of my web pages (by means of a php include):

<a href="http://del.icio.us/post" onclick="window.open('http://del.icio.us/post?v=4&noui&jump=close&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'delicious','toolbar=no,width=700,height=400'); return false;"> Save This Page</a>

This code comes from the following page on the del.icio.us website - [del.icio.us...]

The save button works fine, but I am now getting errors when I validate the page on the W3C site. Is this likely to cause a problem with my Google ranking? I know that Google is supposed to prefer code that validates properly. If so how can I get the code to validate?

P.S. To moderators - I know posting links is technically against the Webmasterworld terms and conditions, however it's not as if I'm using the link to promote my own website and it will probably help people provide a better answer - please feel free free to edit the post to remove the links if you like.

1:51 pm on Jan 16, 2007 (gmt 0)

Preferred Member

10+ Year Member

joined:June 9, 2005
votes: 0

To make it valid you'll need change the ampersands, use &amp; instead of just & inside the url.


The link will still work fine for your visitors and the validator will pass it.

Either way though that isn't an error that is likely to cause issues with Google, but I always change it just to get a clean validation ;).

3:02 pm on Jan 16, 2007 (gmt 0)

Junior Member

10+ Year Member

joined:Aug 8, 2002
votes: 0

Thanks LunaC

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members