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

LibWeb: Implement basic support for Document.all

The finer details are missing here, but the basic API is up.
This commit is contained in:
Andreas Kling 2022-09-18 02:17:11 +02:00
parent 3df9861814
commit e6ef366859
3 changed files with 17 additions and 0 deletions

View file

@ -183,6 +183,7 @@ public:
JS::NonnullGCPtr<HTMLCollection> links();
JS::NonnullGCPtr<HTMLCollection> forms();
JS::NonnullGCPtr<HTMLCollection> scripts();
JS::NonnullGCPtr<HTMLCollection> all();
String const& source() const { return m_source; }
void set_source(String const& source) { m_source = source; }
@ -494,6 +495,7 @@ private:
JS::GCPtr<HTMLCollection> m_links;
JS::GCPtr<HTMLCollection> m_forms;
JS::GCPtr<HTMLCollection> m_scripts;
JS::GCPtr<HTMLCollection> m_all;
};
}