LibWeb: Implement the Element attributes getter

This commit is contained in:
Timothy Flynn 2021-10-16 17:00:49 -04:00 committed by Linus Groh
commit 5d4cd061c7
Notes: sideshowbarker 2024-07-18 02:16:21 +09:00
2 changed files with 2 additions and 0 deletions

View file

@ -56,6 +56,7 @@ public:
ExceptionOr<void> set_attribute(const FlyString& name, const String& value);
void remove_attribute(const FlyString& name);
size_t attribute_list_size() const { return m_attributes->length(); }
NonnullRefPtr<NamedNodeMap> const& attributes() const { return m_attributes; }
DOM::ExceptionOr<bool> matches(StringView selectors) const;