1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:47:34 +00:00

LibWeb: Add NavigationDestination, used for NavigateEvents

This class will be used in the algorithms for the navigate event firing
algorithms to populate the destination field of the NavigateEvent.
This commit is contained in:
Andrew Kaster 2023-08-23 13:35:25 -06:00 committed by Andrew Kaster
parent 8e03f8cb4a
commit 4989375191
7 changed files with 165 additions and 0 deletions

View file

@ -0,0 +1,11 @@
// https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-navigationdestination-interface
[Exposed=Window, UseNewAKString]
interface NavigationDestination {
readonly attribute USVString url;
readonly attribute DOMString key;
readonly attribute DOMString id;
readonly attribute long long index;
readonly attribute boolean sameDocument;
any getState();
};