W3C home > Mailing lists > Public > public-html-comments@w3.org > November 2009

scrollIntoView scrolls what

From: Mike Buchanan <mbuchanan@google.com>
Date: Mon, 2 Nov 2009 16:39:51 -0800
Message-ID: <abc626ad0911021639u3c0925c6mf960329dd4867895@mail.gmail.com>
To: public-html-comments@w3.org
It may be too late for this, but I think the spec would benefit from more
clarity and/or control of what element.scrollIntoView does.  In particular,
I'm thinking of the case where the element is contained in multiple
structures that can scroll (e.g. both the div and whole page, or one
scrolling div nested inside another).

As it is, the spec is unclear about which elements should be scrolled, and
there are scenarios in which there would be more than one way to scroll the
content into view.  I would suggest at least standardizing this; I propose
that when two possible solutions are available, the one that uses only
deeper elements of the DOM be used.

For even more control, another optional argument could be added that allows
the caller to specify which containers should be scrolled.


Addendum: Here's a bit of evidence that I'm not the only person who wants
Received on Tuesday, 3 November 2009 05:22:00 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:26:26 UTC