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:
parent
a6f8b18649
commit
a0b73eb5f7
3 changed files with 19 additions and 24 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue