2022-02-15 22:40:51 +03:30
|
|
|
#import <HTML/HTMLElement.idl>
|
|
|
|
|
2025-04-29 09:44:49 +10:00
|
|
|
[MissingValueDefault=auto, InvalidValueDefault=auto]
|
|
|
|
enum ClosedByAttribute {
|
|
|
|
"any",
|
|
|
|
"closerequest",
|
|
|
|
"none"
|
|
|
|
};
|
|
|
|
|
2022-10-07 16:45:09 -06:00
|
|
|
// https://html.spec.whatwg.org/multipage/semantics.html#htmldialogelement
|
|
|
|
[Exposed=Window]
|
2020-08-01 03:04:26 +01:00
|
|
|
interface HTMLDialogElement : HTMLElement {
|
|
|
|
|
2023-03-23 03:48:52 -04:00
|
|
|
[HTMLConstructor] constructor();
|
|
|
|
|
2023-03-01 01:45:18 +00:00
|
|
|
[CEReactions, Reflect] attribute boolean open;
|
2023-09-02 19:23:04 +02:00
|
|
|
attribute DOMString returnValue;
|
2025-04-29 09:44:49 +10:00
|
|
|
[CEReactions, Reflect=closedby, Enumerated=ClosedByAttribute] attribute DOMString closedBy;
|
2023-09-02 19:23:04 +02:00
|
|
|
[CEReactions] undefined show();
|
|
|
|
[CEReactions] undefined showModal();
|
|
|
|
[CEReactions] undefined close(optional DOMString returnValue);
|
2025-01-16 20:37:18 +00:00
|
|
|
[CEReactions] undefined requestClose(optional DOMString returnValue);
|
2020-08-01 03:04:26 +01:00
|
|
|
|
2020-12-09 21:26:42 +00:00
|
|
|
};
|