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

LibWeb: Make Document vend the same HTMLCollections every time

This commit is contained in:
Andreas Kling 2022-09-18 02:02:52 +02:00
parent 1903dff365
commit fa2dd4cbe3
2 changed files with 55 additions and 33 deletions

View file

@ -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;
};
}