LibWeb/HTML: Stub History.scrollRestoration

This commit is contained in:
Jamie Mansfield 2024-07-21 02:34:50 +01:00 committed by Andreas Kling
parent 9eede09c3c
commit e4e64c15aa
Notes: github-actions[bot] 2024-07-21 11:26:31 +00:00

View file

@ -1,8 +1,11 @@
// https://html.spec.whatwg.org/multipage/nav-history-apis.html#scrollrestoration
enum ScrollRestoration { "auto", "manual" };
// https://html.spec.whatwg.org/multipage/history.html#the-history-interface
[Exposed=Window]
interface History {
readonly attribute unsigned long length;
// FIXME: attribute ScrollRestoration scrollRestoration;
[FIXME] attribute ScrollRestoration scrollRestoration;
readonly attribute any state;
undefined go(optional long delta = 0);
undefined back();