4T

Twitter Widget Validation

by Tony on May.23, 2009, under General

Much to my embarrassment, and to the amusement of my web delegates this week, when I validated the XHTML of my own index page it failed. The error came from an empty list tag in the Twitter widget; the fix for this is to add an empty list item to the source code as shown here (in bold, red text):

<ul id=”twitter_update_list”><li></li></ul>

The empty item doesn’t matter as the tweet feed replaces the content for the list; given that there has been the odd occasion recently where the feeds have been unavailable you could use a list item like this:

<ul id=”twitter_update_list”><li>Oops! – Twitter isn’t working at the moment – sorry</li></ul>

Which will have the effect of placing the blame squarely on the shoulders to which it belongs.

You can click the link above to start following my Twitter feed.

No comments for this entry yet...

Leave a Reply

You must be logged in to post a comment.

Archives

All entries, chronologically...