mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:48:11 +00:00
LibHTML: Move Element construction to a separate file
We now have create_element(document, tag_name) in ElementFactory. This will be useful for constructing new elements outside of parsing.
This commit is contained in:
parent
1f9c4ffd21
commit
35def88c8b
5 changed files with 59 additions and 50 deletions
5
Libraries/LibHTML/DOM/ElementFactory.h
Normal file
5
Libraries/LibHTML/DOM/ElementFactory.h
Normal file
|
@ -0,0 +1,5 @@
|
|||
#pragma once
|
||||
|
||||
#include <LibHTML/DOM/Element.h>
|
||||
|
||||
NonnullRefPtr<Element> create_element(Document&, const String& tag_name);
|
Loading…
Add table
Add a link
Reference in a new issue