mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
LibWeb: Light dismiss dialogs on click
This commit is contained in:
Notes:
github-actions[bot]
2025-04-29 01:43:02 +00:00
Author: https://github.com/Gingeh Commit: https://github.com/LadybirdBrowser/ladybird/commit/aa9f556500a Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4428 Reviewed-by: https://github.com/AtkinsSJ ✅
@@ -1,5 +1,12 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
[MissingValueDefault=auto, InvalidValueDefault=auto]
|
||||
enum ClosedByAttribute {
|
||||
"any",
|
||||
"closerequest",
|
||||
"none"
|
||||
};
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/semantics.html#htmldialogelement
|
||||
[Exposed=Window]
|
||||
interface HTMLDialogElement : HTMLElement {
|
||||
@@ -8,7 +15,7 @@ interface HTMLDialogElement : HTMLElement {
|
||||
|
||||
[CEReactions, Reflect] attribute boolean open;
|
||||
attribute DOMString returnValue;
|
||||
[FIXME, CEReactions] attribute DOMString closedBy;
|
||||
[CEReactions, Reflect=closedby, Enumerated=ClosedByAttribute] attribute DOMString closedBy;
|
||||
[CEReactions] undefined show();
|
||||
[CEReactions] undefined showModal();
|
||||
[CEReactions] undefined close(optional DOMString returnValue);
|
||||
|
||||
Reference in New Issue
Block a user