Bug 4825

Summary: REGRESSION links to named anchors don't scroll to the right place
Product: WebKit Reporter: mitz
Component: DOMAssignee: Vicki Murley <vicki>
Status: VERIFIED FIXED    
Severity: Normal    
Priority: P1    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
testcase none

mitz
Reported 2005-09-03 12:03:53 PDT
Summary: Links to named anchors don't scroll to where the anchor is but rather, it seems, to the next text after the anchor, which may be someplace else. To reproduce: 1) Open the testcase in Safari 2) Click the "Click here" link 3) Click the "Now click here" link Expected: in step 2, Safari to scroll to the top of the solid red box; in step 3, to scroll to the top of the dashed red box. Firefox and Safari GM behave as expected. Actual: in step 2, Safari scrolls to "Now click here"; in step 3, it scrolls to "Hello". Analysis: it seems to scroll to the first text following the anchor. If you put text between the opening and closing A tags of the named anchor, then it will scroll there.
Attachments
testcase (388 bytes, text/html)
2005-09-03 12:04 PDT, mitz
no flags
mitz
Comment 1 2005-09-03 12:04:29 PDT
Created attachment 3731 [details] testcase
Joost de Valk (AlthA)
Comment 2 2005-09-04 22:58:47 PDT
Confirmed, good testcase, though automating this one would be good i think.
Vicki Murley
Comment 3 2005-09-07 11:09:09 PDT
Fixed.
Note You need to log in before you can comment on or make changes to this bug.