ladybird/Libraries/LibWeb/HTML/HTMLDialogElement.idl

25 lines
737 B
Text
Raw Normal View History

#import <HTML/HTMLElement.idl>
2025-04-29 09:44:49 +10:00
[MissingValueDefault=auto, InvalidValueDefault=auto]
enum ClosedByAttribute {
"any",
"closerequest",
"none"
};
// https://html.spec.whatwg.org/multipage/semantics.html#htmldialogelement
[Exposed=Window]
interface HTMLDialogElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions, Reflect] attribute boolean open;
attribute DOMString returnValue;
2025-04-29 09:44:49 +10:00
[CEReactions, Reflect=closedby, Enumerated=ClosedByAttribute] attribute DOMString closedBy;
[CEReactions] undefined show();
[CEReactions] undefined showModal();
[CEReactions] undefined close(optional DOMString returnValue);
[CEReactions] undefined requestClose(optional DOMString returnValue);
};