1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:27:45 +00:00

LibWeb: Implement Document.getElementById()

This was pleasantly simple! We don't have an ElementWrapper yet, so it
just returns a NodeWrapper, but it still basically works. :^)
This commit is contained in:
Andreas Kling 2020-03-14 13:24:15 +01:00
parent 1c406294fc
commit b5a22fc408
3 changed files with 14 additions and 3 deletions

View file

@ -58,6 +58,8 @@ class Node
: public TreeNode<Node>
, public Bindings::Wrappable {
public:
using WrapperType = Bindings::NodeWrapper;
virtual ~Node();
NodeType type() const { return m_type; }