diff --git a/HtmlElement.md b/HtmlElement.md new file mode 100644 index 0000000..c0845dc --- /dev/null +++ b/HtmlElement.md @@ -0,0 +1,17 @@ +```cpp +namespace Crafter::CppDOM { + export class HtmlElement { + public: + void* const ptr; + inline HtmlElement(const char* id, std::size_t idLenght); + inline HtmlElement(const std::string& id); } + inline void SetInnerHTML(const char* html, std::size_t htmlLenght); } + inline void SetInnerHTML(const std::string& html); + inline ~HtmlElement(); + }; +} +``` + +The ``HtmlElement`` is an abstraction layer of HTML elements and bindings related to them. + +It is generally recommended to use this over raw bindings as this enforces memory safety with the destructor and is easier to use. \ No newline at end of file