mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:07:45 +00:00
LibWeb: Support Element.matches(selectors)
This returns whether an element matches any of a set of selectors.
This commit is contained in:
parent
439be913cf
commit
9d852623f2
3 changed files with 20 additions and 0 deletions
|
@ -56,6 +56,8 @@ public:
|
|||
void remove_attribute(const FlyString& name);
|
||||
size_t attribute_list_size() const { return m_attributes.size(); }
|
||||
|
||||
DOM::ExceptionOr<bool> matches(StringView selectors) const;
|
||||
|
||||
template<typename Callback>
|
||||
void for_each_attribute(Callback callback) const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue