This commit is contained in:
Jorijn van der Graaf 2025-11-15 15:29:40 +01:00
commit 28283265c7

View file

@ -7,7 +7,7 @@ Crafter.CppDOM is a C++ library that exposes the browser DOM api's to C++ WebAss
The library provides three main classes for working with HTML elements, all representing a diffrent ownership model:
## HtmlElementPtr
`HtmlElementView` is the base class that provides read and write access to HTML element properties and methods, but does **not** own **anything**. Its the same as a C++ * and will not peform any cleanups.
`HtmlElementPtr` is the base class that provides read and write access to HTML element properties and methods, but does **not** own **anything**. Its the same as a C++ * and will not peform any cleanups.
## HtmlElementView
`HtmlElementView` is a derived class from `HtmlElementPtr` that adds ownership over the event handlers. Upon destructing it will unregister the eventhandlers.