Safari anchors on links not working.
Posted
by Keyo
on Stack Overflow
See other posts from Stack Overflow
or by Keyo
Published on 2010-06-11T05:47:05Z
Indexed on
2010/06/11
5:53 UTC
Read the original article
Hit count: 344
My html anchor is as follows.
<a name="template-8"/>
<h4 class="template" id="template-8">A title</h4>
As far as I know the browser should skip to the element matching either name or id attributes.
When I type in the url http://my.site.com/templates#template-8 safari jumps down the page as expected.
However when linking as below the anchor does nothing. Chrome, Opera, IE7 and Firefox all work.
<a href="http://my.site.com/templates#template-8">A link</a>
Safari is version 5.0, could this be a safari bug?
© Stack Overflow or respective owner