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:
Andreas Kling 2019-10-12 13:02:38 +02:00
commit 35def88c8b
Notes: sideshowbarker 2024-07-19 11:43:49 +09:00
5 changed files with 59 additions and 50 deletions

View file

@ -0,0 +1,5 @@
#pragma once
#include <LibHTML/DOM/Element.h>
NonnullRefPtr<Element> create_element(Document&, const String& tag_name);