- From: Anne van Kesteren <annevk@annevk.nl>
- Date: Wed, 25 Mar 2015 14:54:56 +0100
- To: Majid Valipour <majidvp@chromium.org>
- Cc: WHATWG <whatwg@whatwg.org>, japhet@chromium.org, Rick Byers <rbyers@chromium.org>
On Thu, Mar 19, 2015 at 6:31 PM, Majid Valipour <majidvp@chromium.org> wrote: > partial interface History { > void pushState(in any data, in DOMString title, in optional DOMString > url, in optional StateOptions options); > void replaceState(in any data, in DOMString title, in optional DOMString > url, in optional StateOptions options); > readonly attribute StateOptions options; > }; > > dictionary StateOptions { > Boolean restoreScroll = true, > } The only suggestion I have is that instead of having four-argument methods we might want to consider introducing two new methods that take a dictionary. E.g. history.push() and history.replace(). Giving the page more control over the scroll position when navigating makes sense to me. -- https://annevankesteren.nl/
Received on Wednesday, 25 March 2015 13:55:26 UTC