Flickr badge and XHTML validation
After recently implementing a
Flickr sidebar linking to my favorite photos, I today noticed that those pages with the sidebar no longer validated as XHTML 1.0 Strict. Manually fixing the code resulted near-success, with the exception of an
<iframe> tag. In frustration I eventually started trawling Google, and found
this page. Bingo! Commenting out the javascript will fix it!
To summarise what is needed:
1. Move the Flickr
<style> ... </style> code so that it is within your page's
<head> block.
2. Change one instance of
<br> to
<br />
3. Replace
<script type="text/javascript"> with
<script type="text/javascript"><--
4. Replace
</script> with
--></script>
That's it. The badge should now validate.
Posted on 13 July 2005, to
Digital Imagery |
Web Design
Comments
There have been no comments posted to this entry.
http://thoughton.co.uk/cgi-bin/mt-tb-dlosx.cgi/47