summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Userland/Libraries/LibWeb/DOM/HTMLCollection.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/HTMLCollection.h b/Userland/Libraries/LibWeb/DOM/HTMLCollection.h
index 999b3f9e72..9a4241edb9 100644
--- a/Userland/Libraries/LibWeb/DOM/HTMLCollection.h
+++ b/Userland/Libraries/LibWeb/DOM/HTMLCollection.h
@@ -53,6 +53,8 @@ public:
protected:
HTMLCollection(ParentNode& root, Function<bool(Element const&)> filter);
+ NonnullRefPtr<ParentNode> root() { return m_root; }
+
private:
NonnullRefPtr<ParentNode> m_root;
Function<bool(Element const&)> m_filter;