mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 12:06:07 +00:00
LibWeb: Add missing property and methods for history object
We provide `length` property and `go` / `back` / `forward` methods implementation here.
This commit is contained in:
parent
2b9cf5a7b4
commit
2029c98fa7
Notes:
sideshowbarker
2024-07-17 05:48:45 +09:00
Author: https://github.com/leeight
Commit: 2029c98fa7
Pull-request: https://github.com/SerenityOS/serenity/pull/15567
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/linusg
4 changed files with 73 additions and 1 deletions
|
@ -1,5 +1,12 @@
|
|||
// 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: 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);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue