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