1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 15:07:45 +00:00

LibWeb: Add Document.createProcessingInstruction()

These nodes don't really do anything interesting yet, but let's allow
creating them. :^)
This commit is contained in:
Andreas Kling 2022-12-13 13:24:56 +01:00
parent bf759ce5e3
commit 8b0ace6289
3 changed files with 17 additions and 0 deletions

View file

@ -12,6 +12,7 @@
#import <DOM/NodeIterator.idl>
#import <DOM/NodeList.idl>
#import <DOM/ParentNode.idl>
#import <DOM/ProcessingInstruction.idl>
#import <DOM/Range.idl>
#import <DOM/Text.idl>
#import <DOM/TreeWalker.idl>
@ -78,6 +79,8 @@ interface Document : Node {
DocumentFragment createDocumentFragment();
Text createTextNode(DOMString data);
Comment createComment(DOMString data);
[NewObject] ProcessingInstruction createProcessingInstruction(DOMString target, DOMString data);
Range createRange();
Event createEvent(DOMString interface);