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

LibWeb/HTML: Port Window.alert() to IDL

This commit is contained in:
Linus Groh 2023-03-05 16:02:35 +00:00
parent a6f8b18649
commit a0b73eb5f7
3 changed files with 19 additions and 24 deletions

View file

@ -2,8 +2,11 @@
#import <DOM/EventTarget.idl>
// https://html.spec.whatwg.org/multipage/nav-history-apis.html#window
[Global=Window, Exposed=Window, LegacyUnenumerableNamedProperties]
[Global=Window, Exposed=Window, LegacyUnenumerableNamedProperties, UseNewAKString]
interface Window : EventTarget {
// user prompts
undefined alert();
undefined alert(DOMString message);
};
Window includes GlobalEventHandlers;
Window includes WindowEventHandlers;