1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:17:36 +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:
Linus Groh 2021-04-10 18:58:00 +02:00 committed by Andreas Kling
parent 9d2635d94b
commit d8d16dea95
3 changed files with 59 additions and 0 deletions

View file

@ -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);