From f6ce81b07a09298bd0047318bed86598e34ac180 Mon Sep 17 00:00:00 2001 From: The-Mighty-Cat <54977668+The-Mighty-Cat@users.noreply.github.com> Date: Wed, 12 Feb 2025 22:26:55 +0100 Subject: [PATCH] Created GetElementById (markdown) --- GetElementById.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 GetElementById.md diff --git a/GetElementById.md b/GetElementById.md new file mode 100644 index 0000000..e9da0f6 --- /dev/null +++ b/GetElementById.md @@ -0,0 +1,8 @@ +```cpp +void* Crafter::CppDOM::Bindings::GetElementById(const char* id, std::size_t idLenght); +inline void* GetElementById(const std::string& id); +``` + +Accepts an id string and returns a void* to a JS object. + +[Mozilla Reference](https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementById) \ No newline at end of file