2024-07-20 22:34:50 -03:00
|
|
|
// https://html.spec.whatwg.org/multipage/nav-history-apis.html#scrollrestoration
|
|
|
|
|
enum ScrollRestoration { "auto", "manual" };
|
|
|
|
|
|
2022-10-13 11:43:04 -03:00
|
|
|
// https://html.spec.whatwg.org/multipage/history.html#the-history-interface
|
2023-09-02 11:00:01 -03:00
|
|
|
[Exposed=Window]
|
2021-09-11 19:43:34 -03:00
|
|
|
interface History {
|
2022-10-13 11:43:04 -03:00
|
|
|
readonly attribute unsigned long length;
|
2024-10-02 05:33:05 -03:00
|
|
|
attribute ScrollRestoration scrollRestoration;
|
2023-09-28 01:39:44 -03:00
|
|
|
readonly attribute any state;
|
2022-10-13 11:43:04 -03:00
|
|
|
undefined go(optional long delta = 0);
|
|
|
|
|
undefined back();
|
|
|
|
|
undefined forward();
|
2021-09-11 19:43:34 -03:00
|
|
|
undefined pushState(any data, DOMString unused, optional USVString? url = null);
|
|
|
|
|
undefined replaceState(any data, DOMString unused, optional USVString? url = null);
|
|
|
|
|
};
|