mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
LibWeb: Add a basic implementation of Document.createEvent()
This is a legacy function providing a way of constructing events without using their constructors exposed on the global object. We don't have many of the events it supports yet, nor can we throw a DOMException from it, so that's two FIXMEs for later.
This commit is contained in:
parent
9d2635d94b
commit
d8d16dea95
Notes:
sideshowbarker
2024-07-18 20:34:45 +09:00
Author: https://github.com/linusg
Commit: d8d16dea95
Pull-request: https://github.com/SerenityOS/serenity/pull/6218
Reviewed-by: https://github.com/Lubrsi
3 changed files with 59 additions and 0 deletions
|
@ -30,6 +30,7 @@ interface Document : Node {
|
|||
Text createTextNode(DOMString data);
|
||||
Comment createComment(DOMString data);
|
||||
Range createRange();
|
||||
Event createEvent(DOMString interface);
|
||||
|
||||
[CEReactions, ImplementedAs=adopt_node_binding] Node adoptNode(Node node);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue