mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:57:35 +00:00
LibWeb: Implement ErrorEvent
This will be used by the new EventTarget to check if it needs to do special error event handling. Currently it isn't used for anything else.
This commit is contained in:
parent
dc42ca37bd
commit
11eedc309a
5 changed files with 98 additions and 0 deletions
20
Userland/Libraries/LibWeb/HTML/ErrorEvent.idl
Normal file
20
Userland/Libraries/LibWeb/HTML/ErrorEvent.idl
Normal file
|
@ -0,0 +1,20 @@
|
|||
#import <DOM/Event.idl>
|
||||
|
||||
[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;
|
||||
};
|
||||
|
||||
dictionary ErrorEventInit : EventInit {
|
||||
DOMString message = "";
|
||||
USVString filename = "";
|
||||
unsigned long lineno = 0;
|
||||
unsigned long colno = 0;
|
||||
any error = null;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue