Problem with anchor links on LJ
Date: 02/10/05
(Opera Browser) Keywords: browser, html
Does anyone else have a problem with LJ comment pages and Opera jumping to the bottom of the page every time you switch a page? This is in cases where there is more than one page of comments on a post, and the page numbers and links are in two places - at the top, right below the entry, and at the very bottom.
When I click on, say the link to page 2 of comments, the link points to page 2, anchor link named "comments". It switches the page all fine and good, but invariably scrolls all the way down so I have to manually scroll to the first comment on the page. This gets very annoying especially when reading posts with several pages of comments on them.
I took a look at the source of LJ comment pages and found that they have actually TWO anchor links named "comments" - one at the top with the comment page links, second at the bottom links. I suspect this is the problem. Opera picks the latter link every time, other browsers (IE, Firefox) pick the first one and put my at the start of the comments. Behavior quirk or bug? Would this be the "fault" of Opera or LJ? (I don't think having two links named the same is exactly good HTML at least.) Is there a way to fix it so I could stop scrolling all the way up every time?
Using Opera7.54u1 build 3918 WinXP, but the behavior has been the same all the way through version 7, can't remember about 6.
Source: http://www.livejournal.com/community/opera_browser/26410.html