ladybird/Libraries/LibWeb/HTML/ErrorEvent.idl
2025-02-05 16:04:50 -07:00

22 lines
688 B
Text

#import <DOM/Event.idl>
// https://html.spec.whatwg.org/multipage/webappapis.html#errorevent
[Exposed=(Window,Worker)]
interface ErrorEvent : Event {
constructor(DOMString type, optional ErrorEventInit eventInitDict = {});
readonly attribute DOMString message;
readonly attribute USVString filename;
readonly attribute unsigned long lineno;
readonly attribute unsigned long colno;
readonly attribute any error;
};
// https://html.spec.whatwg.org/multipage/webappapis.html#erroreventinit
dictionary ErrorEventInit : EventInit {
DOMString message = "";
USVString filename = "";
unsigned long lineno = 0;
unsigned long colno = 0;
any error;
};