Hi petit,
Just looking at it a bit more – I notice this difference. On a webpage where the code works – the ‘view source’ results in the following:
document.write('Bookmark on <a href=https://del.icio.us/post?&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)+' target="blank">del.icio.us</a>');
whereas on the page where it isn’t working, the ‘view source’ results in the following:
document.write(’Bookmark on <a xhref="https://del.icio.us/post?&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)+'" mce_href="https://del.icio.us/post?&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)+'" target="blank">del.icio.us</a>‘);
So wp seems to be interpolating and escaping the ampersands and I dunno what else – looks like a bit of a mess.
Any ideas on how to fix this?
I am under the impression that I am using XHTML strict but I could be wrong. I did notice when I tried to validate it – I got all sorts of errors with the javascript. How do you include the javascript in the CDATA?
I can email you a link to the site if that would help but not keen on publishing a link to it. My email is thomas.holmes at gmail.com
Thanks for your help petit!