mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
LibWeb: Add Document create_element() and create_text_node() helpers
This commit is contained in:
parent
9d7ab13b32
commit
0e60e7aef0
Notes:
sideshowbarker
2024-07-19 06:45:00 +09:00
Author: https://github.com/awesomekling
Commit: 0e60e7aef0
2 changed files with 16 additions and 2 deletions
|
@ -125,6 +125,9 @@ public:
|
|||
|
||||
JS::Value run_javascript(const StringView&);
|
||||
|
||||
NonnullRefPtr<Element> create_element(const String& tag_name);
|
||||
NonnullRefPtr<Text> create_text_node(const String& data);
|
||||
|
||||
private:
|
||||
virtual RefPtr<LayoutNode> create_layout_node(const StyleProperties* parent_style) const override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue