Files
serenity/Userland/Libraries/LibWeb/HTML/History.idl
Jamie Mansfield 33a8d6c010 LibWeb/HTML: Stub History.scrollRestoration
(cherry picked from commit e4e64c15aa1027754a4ed47504e2ba42d262e927)
2024-07-22 12:23:12 -04:00

16 lines
646 B
Plaintext

// 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;
readonly attribute any state;
undefined go(optional long delta = 0);
undefined back();
undefined forward();
undefined pushState(any data, DOMString unused, optional USVString? url = null);
undefined replaceState(any data, DOMString unused, optional USVString? url = null);
};