summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/DOM/Document.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-09-18 02:02:52 +0200
committerAndreas Kling <kling@serenityos.org>2022-09-18 02:08:01 +0200
commitfa2dd4cbe3e0a2aaafadac6fef8eba5d63b1c437 (patch)
treed297801aacfcdc5917e3f92b7df1cdce322d95f2 /Userland/Libraries/LibWeb/DOM/Document.h
parent1903dff3653ab0817a3cbf5cf7c16a91d6d90b34 (diff)
downloadserenity-fa2dd4cbe3e0a2aaafadac6fef8eba5d63b1c437.zip
LibWeb: Make Document vend the same HTMLCollections every time
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/Document.h')
-rw-r--r--Userland/Libraries/LibWeb/DOM/Document.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Document.h b/Userland/Libraries/LibWeb/DOM/Document.h
index 34351563b3..6f5b1496a1 100644
--- a/Userland/Libraries/LibWeb/DOM/Document.h
+++ b/Userland/Libraries/LibWeb/DOM/Document.h
@@ -486,6 +486,14 @@ private:
// https://dom.spec.whatwg.org/#concept-document-origin
HTML::Origin m_origin;
+
+ JS::GCPtr<HTMLCollection> m_applets;
+ JS::GCPtr<HTMLCollection> m_anchors;
+ JS::GCPtr<HTMLCollection> m_images;
+ JS::GCPtr<HTMLCollection> m_embeds;
+ JS::GCPtr<HTMLCollection> m_links;
+ JS::GCPtr<HTMLCollection> m_forms;
+ JS::GCPtr<HTMLCollection> m_scripts;
};
}