ladybird/Userland/Libraries/LibWeb/HTML/PopStateEvent.idl
Aliaksandr Kalenik ee3dd7977d LibWeb: Add popstate event support
It is going to be useful in writing tests for History API.
2024-04-11 21:25:06 +02:00

16 lines
448 B
Plaintext

#import <DOM/Event.idl>
// https://html.spec.whatwg.org/multipage/nav-history-apis.html#popstateevent
[Exposed=Window]
interface PopStateEvent : Event {
constructor(DOMString type, optional PopStateEventInit eventInitDict = {});
readonly attribute any state;
// FIXME: readonly attribute boolean hasUAVisualTransition;
};
dictionary PopStateEventInit : EventInit {
any state = null;
// FIXME: boolean hasUAVisualTransition = false;
};