News for hackers. Stuff that matters.
Re:The HTML A element is broken by Mahn on Wednesday March 06, 2013 @08:00AM (#5330921)
Well, theoretically, for a HTML5 standards compliant version you could do:

  <img src="pic.jpg" data-href="about.html">
And this, plus what I suspect it would be a very tiny global javascript handler that takes care of simulating the links, would pretty much do it.

Of course, there is the question of how well this would work on older browsers, although actually as long as javascript is not disabled I don't think it would give much trouble (data attributes can be easily fetched in IE6 for instance)

Edit: Here's a quick and dirty demo of how this could work: http://jsfiddle.net/Dszvc/2/ it could easily be turned into a full featured plugin.

Re:The HTML A element is broken by olavk on Wednesday March 06, 2013 @08:26AM (#5331021)
Only HTML5 compliant in the sense that it is not illegal. There is no standard semantics for data-attributes, so e.g. Google will not index your links.
Re:The HTML A element is broken by deno on Wednesday March 06, 2013 @09:00AM (#5331129)
Would Google index attributes in XLink namespace? E.g.:

    <img src="pic.jpg" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="about.html" />
I know they index SVG documents, and there’s no @href in SVG namespace… Would that work for (X)HTML5 documents, either served as HTML or XML document?

You’d still need JS polyfill, but at least the semantics remain intact.

Re:The HTML A element is broken by Mahn on Wednesday March 06, 2013 @08:32AM (#5331038)
True, I didn't consider that. I guess you could work around this placing all the links you want to be indexed in a hidden div or something similar though. This could be automated via javascript aswell.
Re:The HTML A element is broken by SquareWheel on Wednesday March 06, 2013 @11:56AM (#5332139)
The anchor text and surrounding paragraph of the link is also important for SEO-value, so I'm afraid that would not work. I think the idea of a shiv is a neat one, but unfortunately not very practical at the moment.
Re:The HTML A element is broken by olavk on Wednesday March 06, 2013 @08:47AM (#5331081)
It would be a lot simpler just to use a-elements though :-)