mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:28:10 +00:00
LibWeb: Convert HTMLCollection to use IDL special operations
This commit is contained in:
parent
41ae0c0216
commit
37347cbcb6
6 changed files with 72 additions and 42 deletions
|
@ -42,10 +42,13 @@ public:
|
|||
~HTMLCollection();
|
||||
|
||||
size_t length();
|
||||
Element* item(size_t index);
|
||||
Element* named_item(FlyString const& name);
|
||||
Element* item(size_t index) const;
|
||||
Element* named_item(FlyString const& name) const;
|
||||
|
||||
Vector<NonnullRefPtr<Element>> collect_matching_elements();
|
||||
Vector<NonnullRefPtr<Element>> collect_matching_elements() const;
|
||||
|
||||
Vector<String> supported_property_names() const;
|
||||
bool is_supported_property_index(u32) const;
|
||||
|
||||
protected:
|
||||
HTMLCollection(ParentNode& root, Function<bool(Element const&)> filter);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue