When I open the following link in IE, Opera, Safari or Chrome, it works as it should. The content which follows the anchor tag (<a name=“neuro”>) in the source code, is displayed at the top of the viewport.
<broken link removed>
However, when I open the same link in Firefox 4 or Firefox 5, the browser jumps straight to the bottom of the page, not to the anchor tag.
I’ve looked at the source code of the above page and the anchor seems to be specified correctly. There is only this one anchor element with a name of “neuro” and there are no other tags on the page with this name, id or class.
Does anyone have a clue as to why FF4 and FF5 are doing this?
FF3 worked as it should.
It works correctly for me albeit you do have a lot of markup errors in that page and it would have been preferable to use ID rather than the name attribute. Did you mean to place a ‘fragment identifier’ for the actual h3 rather than above the mp4?
It’s not my page dude. I just want to link to it.
It’s full of markup errors and the code is horrible - no question, but I can’t do anything about that.
But do I understand correctly, that when you click on the above link in FF4 or FF5, the window that opens looks like the image below?
Yes, that is where it is supposed to link to according to the markup and that’s where Fx does take me when I click on the above link (I land at same place as seen in that JPG).
Works for me with Nightly on mac. But you could file a bug anyway. I suspect it could have to do with the page being rendered without styles the first time, then Firefox jumps to the anchor, then the styles are applied and Firefox doesn’t update the scroll position, or something (I saw a flash of unstyled content first time but the scroll position was correct anyway).
Thanks for the replies.
Could anyone else confirm if they are seeing the same thing in FF4 or FF5 (i.e. the bottom of the page instead of the anchor) and if they think it is a bug.
Normally such links work fine in FF4 and presumably 5 (I just did a test to convince myself) so I’d say it’s something to do with the bad coding of that page, as others have suggested.
The guys over at Bugzilla seem to agree that this is undesired behaviour on FF’s part. I don’t know what kind of importance they will give to fixing this, but it is good to know that it is not something wrong with the original web page.
Someone also pointed out that in about:config, setting “html5.parser.enable” to “false”, makes this go away.
Could this be the reason that you are seeing correct behaviour Robert?
I have html5.parser.enable as true I don’t alter the config as a general rule. Although I typically surf without JS but I doubt that would alter the results.
The strange tag comes from the page being made with the Imperia CMS.
Imperia inserts this tag into all of the pages it makes, as it also offers a browser extension, which by means of these tags, enables a one-click edit of any specific page.
It’s a bit weird though, isn’t it, that all other Browsers jump to the anchor tag when the link is clicked, just not FF4 and FF5.