[whatwg] scrollIntoView()
Anne van Kesteren
annevk at opera.com
Tue Aug 17 02:12:33 PDT 2010
Ian has suggested several times so far that I take over editing of the
scrollIntoView() method and define it in the CSSOM View Module:
http://dev.w3.org/csswg/cssom-view/
I agree that is a more appropriate place. I played around with it a little
and it seems that in browsers other than Opera invoking the method affects
the scrolling position of ancestor documents. I.e. if you have a document
in an iframe where scrollIntoView() is invoked on an element not only will
that document scroll, but the document the iframe is in will scroll as
well. In addition this will dispatch events to each document object of
which the document is scrolled, and any elements that are scrolled in the
process (the order is innermost-outermost, and sync in Webkit, async in
Gecko, afaict).
I was wondering whether this should happen cross-origin as well. That
seems like a minor leak of some sorts. And if that should happen, should
the sandbox="" attribute disable it?
Cheers,
--
Anne van Kesteren
http://annevankesteren.nl/
More information about the whatwg
mailing list