mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:57:46 +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:
parent
bf759ce5e3
commit
8b0ace6289
3 changed files with 17 additions and 0 deletions
|
@ -227,6 +227,8 @@ public:
|
|||
JS::NonnullGCPtr<DocumentFragment> create_document_fragment();
|
||||
JS::NonnullGCPtr<Text> create_text_node(DeprecatedString const& data);
|
||||
JS::NonnullGCPtr<Comment> create_comment(DeprecatedString const& data);
|
||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<ProcessingInstruction>> create_processing_instruction(DeprecatedString const& target, DeprecatedString const& data);
|
||||
|
||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<Event>> create_event(DeprecatedString const& interface);
|
||||
JS::NonnullGCPtr<Range> create_range();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue