cvs commit: www/en where.sgml

Giorgos Keramidas keramida at freebsd.org
Wed Nov 4 21:43:03 UTC 2009


On Wed, 4 Nov 2009 21:31:17 +0100, "Simon L. Nielsen" <simon at FreeBSD.org> wrote:
> On 2009.11.02 00:53:13 +0000, Giorgos Keramidas wrote:
>> keramida    2009-11-02 00:53:13 UTC
>>
>>   FreeBSD doc repository
>>
>>   Modified files:
>>     en                   where.sgml
>>   Log:
>>   Add a #download link target to the appropriate section
>>
>>   This way we can link directly to the download section of the page
>>   from other places (or post the link to emails, help answers, etc.)
>
> Was there a good reason to use those "empty" <a> tags compared to just
> use id attributed on the header tags?  (There might very well be, I
> simply can't remember, othar than remebering seeing those <a> tags
> here and there in FreeBSD docs but never using it like that anywhere
> else...)

I am not sure.

At first I thought that it was a workaround for browsers who scroll too
aggressively when <h1 id="foo">, showing half of the title text.  But a
small test with a manually patched html file shows that Firefox 3.5
handles the id/name attributes correctly, showing the full text height
of the <h1> element:

  http://people.freebsd.org/~keramida/link-id.png

I remember seeing browsers that do slide forward a bit too far, showing
only parts of the <h1 id="foo" name="foo"> text.  But this may be a
browser bug that has been fixed a long time ago.



More information about the cvs-all mailing list