W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2013

Re: [whatwg] Proposing: "autoscroll" event

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 14 May 2013 14:34:09 -0700
Message-ID: <CAAWBYDCn=vdyEfS5od=Ot1vzP66d19jqKOh5+kRjJ_OQvX_f7A@mail.gmail.com>
To: Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net>
Cc: WHATWG <whatwg@lists.whatwg.org>, Kyle Simpson <getify@gmail.com>
On Tue, May 14, 2013 at 2:31 PM, Nils Dagsson Moskopp
<nils@dieweltistgarnichtso.net> wrote:
> Kyle Simpson <getify@gmail.com> schrieb am Tue, 14 May 2013 16:08:17
> -0500:
>> There have been times this automatic behavior has been quite annoying
>> because of accidential ID/hash overlap.
>
> Please explain how a document subresource can be “accidentally”
> referred to by a URL be “accidental”. I do not understand it.

You're using a hash to store information that is used by JS.  You also
use ids on your page.  These can collide unintentionally, causing a
scroll on page load.

~TJ
Received on Tuesday, 14 May 2013 21:34:56 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:59 UTC