mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 23:59:49 +00:00
LibWeb: Implement document.execCommand("delete")
To facilitate the implementation of "delete" and all associated algorithms, split off this piece of `Document` into a separate directory. This sets up the infrastructure for arbitrary commands to be supported.
This commit is contained in:
parent
c87960f8f3
commit
7bb865052a
Notes:
github-actions[bot]
2024-11-30 16:37:23 +00:00
Author: https://github.com/gmta
Commit: 7bb865052a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2655
Reviewed-by: https://github.com/shannonbooth
Reviewed-by: https://github.com/yyny
12 changed files with 2227 additions and 48 deletions
|
@ -26,6 +26,7 @@
|
|||
#include <LibWeb/Bindings/WindowExposedInterfaces.h>
|
||||
#include <LibWeb/DOM/Document.h>
|
||||
#include <LibWeb/DOM/MutationType.h>
|
||||
#include <LibWeb/Editing/CommandNames.h>
|
||||
#include <LibWeb/HTML/AttributeNames.h>
|
||||
#include <LibWeb/HTML/CustomElements/CustomElementDefinition.h>
|
||||
#include <LibWeb/HTML/CustomElements/CustomElementReactionNames.h>
|
||||
|
@ -101,6 +102,7 @@ ErrorOr<void> initialize_main_thread_vm(HTML::EventLoop::Type type)
|
|||
|
||||
// These strings could potentially live on the VM similar to CommonPropertyNames.
|
||||
DOM::MutationType::initialize_strings();
|
||||
Editing::CommandNames::initialize_strings();
|
||||
HTML::AttributeNames::initialize_strings();
|
||||
HTML::CustomElementReactionNames::initialize_strings();
|
||||
HTML::EventNames::initialize_strings();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue