LibWeb: Implement the HTMLAreaElement.relList attribute

This returns a DOMTokenList that reflects the `rel` attribute.
This commit is contained in:
Tim Ledbetter 2024-05-16 06:02:56 +01:00 committed by Andreas Kling
parent b7fd39c2e6
commit 0a3e1846f0
Notes: sideshowbarker 2024-07-17 02:29:45 +09:00
5 changed files with 24 additions and 1 deletions

View file

@ -20,6 +20,7 @@ class HTMLAreaElement final
public:
virtual ~HTMLAreaElement() override;
JS::GCPtr<DOM::DOMTokenList> rel_list();
private:
HTMLAreaElement(DOM::Document&, DOM::QualifiedName);
@ -50,6 +51,8 @@ private:
}
virtual Optional<ARIA::Role> default_role() const override;
JS::GCPtr<DOM::DOMTokenList> m_rel_list;
};
}