|Ned Batchelder : Blog | Code | Text | Site|
IE difficulties: link targets
» Home : Blog : November 2003
I've been screwing around with the behind the scenes stuff on this site, and a few things about IE caused me some head-scratching. Maybe a reader out there knows an answer. One of the problems is link targets.
The archive links to old blog content (for example, at the bottom of the main blog page) weren't working properly in IE6. They would navigate to the proper page, but the fragment identifier (you know, the part after the hash mark) wasn't scrolling the page to the proper place. The HTML for a blog entry looked like this (slightly simplified!):
IE wouldn't use the id attribute of the div as a link target. Why not? Changing the HTML to this fixed the problem:
Anyone know why IE6 won't jump to <div id=''> tags?