thoughton:digitallife banner
about downloads imagery work
-- Digital Imagery --

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

Related entries

Stop iphoto from importing images - 14 January 2005
Automatically copy Bluetoothed images into iPhoto - 14 January 2005
Compressing sparse disk images - 4 September 2004
Goodbye ServuStats - 2 March 2005
Nvu WYSIWYG web editor - 30 June 2005
Retrofit your website for smartphone/PDA access - 19 December 2005
More WebKit and SVG news - 10 July 2005
Scalable Vector Graphics on a Mac - 1 July 2005

Trackback Pings

TrackBack URL for this entry:
http://thoughton.co.uk/cgi-bin/mt-tb-dlosx.cgi/47

Comments

There have been no comments posted to this entry.

Subscribe to comments

Enter your email address in the box below to receive an email notification whenever a new comment is posted to this entry.

Email address:

Post a comment










Remember personal info?


Click a smiley!
:) ;) 8) :| :(
:P :X :? :mad: :D
:o :cry: :shock: :blush: :roll:



Security code
Please enter this security number in the space below (this prevents automated responses).



Category icon Sponsors