mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:07:46 +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:
parent
3df9861814
commit
e6ef366859
3 changed files with 17 additions and 0 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue