ladybird/Userland/Libraries/LibWeb/HTML/CloseEvent.idl
Matthew Olsson 26e6c47d0a IDL: Add missing spec links
The only IDL interface without a spec link is Internals
2023-11-11 08:51:51 +01:00

18 lines
469 B
Plaintext

#import <DOM/Event.idl>
// https://websockets.spec.whatwg.org/#the-closeevent-interface
[Exposed=*]
interface CloseEvent : Event {
constructor(DOMString type, optional CloseEventInit eventInitDict = {});
readonly attribute boolean wasClean;
readonly attribute unsigned short code;
readonly attribute USVString reason;
};
dictionary CloseEventInit : EventInit {
boolean wasClean = false;
unsigned short code = 0;
USVString reason = "";
};