This is not a broken link.
twimg.com actually returns an image with the name of the URL you are requesting.
just click on the link. This is not the text you see, this is an image.
Update
Here is the code that works in all browsers.
It performs some basic detection functions.
function handle( elem, img, state ) { if ((typeof(elem.onerror) === 'function' && state === 'fail') || (elem.width === 0) ) { elem.src = img; } }
http://jsfiddle.net/VVcQj/1
It uses both onload and onerror , but a function defined in javascript is required to handle the situation.
source share