mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-08 13:37:10 +09:00
LibWeb: Implement the request-close command
See: https://github.com/whatwg/html/pull/11045
This commit is contained in:
parent
fc35229dab
commit
9ef9f8d38f
Notes:
github-actions[bot]
2025-06-07 03:07:08 +00:00
Author: https://github.com/Gingeh
Commit: 9ef9f8d38f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5002
Reviewed-by: https://github.com/tcl3 ✅
Reviewed-by: https://github.com/trflynn89
5 changed files with 358 additions and 13 deletions
|
@ -289,9 +289,10 @@ String HTMLButtonElement::command() const
|
|||
// show-popover Show Popover Shows the targeted popover element.
|
||||
// hide-popover Hide Popover Hides the targeted popover element.
|
||||
// close Close Closes the targeted dialog element.
|
||||
// request-close Request Close Requests to close the targeted dialog element.
|
||||
// show-modal Show Modal Opens the targeted dialog element as modal.
|
||||
// A custom command keyword Custom Only dispatches the command event on the targeted element.
|
||||
Array valid_values { "toggle-popover"_string, "show-popover"_string, "hide-popover"_string, "close"_string, "show-modal"_string };
|
||||
Array valid_values { "toggle-popover"_string, "show-popover"_string, "hide-popover"_string, "close"_string, "request-close"_string, "show-modal"_string };
|
||||
|
||||
// 2. If command is in the Custom state, then return command's value.
|
||||
// A custom command keyword is a string that starts with "--".
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue