<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>4825</bug_id>
          
          <creation_ts>2005-09-03 12:03:53 -0700</creation_ts>
          <short_desc>REGRESSION links to named anchors don&apos;t scroll to the right place</short_desc>
          <delta_ts>2005-09-07 11:37:55 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>mitz</reporter>
          <assigned_to name="Vicki Murley">vicki</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>18537</commentid>
    <comment_count>0</comment_count>
    <who name="">mitz</who>
    <bug_when>2005-09-03 12:03:53 -0700</bug_when>
    <thetext>Summary: Links to named anchors don&apos;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 &quot;Click here&quot; link
3) Click the &quot;Now click here&quot; 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 &quot;Now click here&quot;; in step 3, it scrolls to &quot;Hello&quot;.

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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18538</commentid>
    <comment_count>1</comment_count>
      <attachid>3731</attachid>
    <who name="">mitz</who>
    <bug_when>2005-09-03 12:04:29 -0700</bug_when>
    <thetext>Created attachment 3731
testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18725</commentid>
    <comment_count>2</comment_count>
    <who name="Joost de Valk (AlthA)">joost</who>
    <bug_when>2005-09-04 22:58:47 -0700</bug_when>
    <thetext>Confirmed, good testcase, though automating this one would be good i think.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19021</commentid>
    <comment_count>3</comment_count>
    <who name="Vicki Murley">vicki</who>
    <bug_when>2005-09-07 11:09:09 -0700</bug_when>
    <thetext>Fixed.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>3731</attachid>
            <date>2005-09-03 12:04:29 -0700</date>
            <delta_ts>2005-09-03 12:04:29 -0700</delta_ts>
            <desc>testcase</desc>
            <filename>scrollToAnchor.html</filename>
            <type>text/html</type>
            <size>388</size>
            <attacher>mitz</attacher>
            
              <data encoding="base64">PGh0bWw+PGhlYWQ+Cjx0aXRsZT5TY3JvbGxpbmcgdG8gYW5jaG9yczwvdGl0bGU+CjwvaGVhZD4K
PGJvZHk+CjxwPjxhIGhyZWY9IiNhbmNob3IiPkNsaWNrIGhlcmU8L2E+PC9wPgo8YSBuYW1lPSJh
bmNob3IiPjwvYT4KPGRpdiBzdHlsZT0id2lkdGg6MTAwJTsgYm9yZGVyOjFweCByZWQgc29saWQ7
IGhlaWdodDoxMDAwcHg7Ij48L2Rpdj4KPHA+PGEgaHJlZj0iI2FuY2hvcjIiPk5vdyBjbGljayBo
ZXJlPC9hPjwvcD4KPGEgbmFtZT0iYW5jaG9yMiI+PC9hPgo8ZGl2IHN0eWxlPSJ3aWR0aDoxMDAl
OyBib3JkZXI6MXB4IHJlZCBkYXNoZWQ7IGhlaWdodDoxMDAwcHg7IHBhZGRpbmctdG9wOjUwMHB4
OyI+SGVsbG88L2Rpdj4KVGhhbmsgeW91IQo8YnI+CjwvYm9keT48L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>