summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/DOM/HTMLCollection.h
diff options
context:
space:
mode:
authorLuke Wilde <lukew@serenityos.org>2021-09-26 15:14:37 +0100
committerAndreas Kling <kling@serenityos.org>2021-09-26 18:59:56 +0200
commit37347cbcb64e20300155df4168412f58f33f07c6 (patch)
treea6a9196373a9a4dc8626f4621a56d198e1664a47 /Userland/Libraries/LibWeb/DOM/HTMLCollection.h
parent41ae0c021690326ac8be278174803cb5d3fc3dfc (diff)
downloadserenity-37347cbcb64e20300155df4168412f58f33f07c6.zip
LibWeb: Convert HTMLCollection to use IDL special operations
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/HTMLCollection.h')
-rw-r--r--Userland/Libraries/LibWeb/DOM/HTMLCollection.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/HTMLCollection.h b/Userland/Libraries/LibWeb/DOM/HTMLCollection.h
index 8ee6c69d53..999b3f9e72 100644
--- a/Userland/Libraries/LibWeb/DOM/HTMLCollection.h
+++ b/Userland/Libraries/LibWeb/DOM/HTMLCollection.h
@@ -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);