HTML 5 Linking Demo

Eric Meyer has created a quick and dirty demo that shows us how elements in HTML 5 can become hyperlinks.

He had an issue where it wouldn’t show any visited “links” properly, and seeing a need for it, I tossed in a few lines of very dirty javascript to fix it. The javascript inserts some anchors, grabs the applied style via the sneaky :pseudo selecter, and determines if the browser has visited the target by calculating it’s height.

Of course, this is definitely going to not work in Internet Explorer, however, that could be easily fixed by using a framework like jQuery.