LibWeb: Implement the HTMLAnchorElement.relList attribute

This returns a DOMTokenList that reflects the `rel` attribute.
This commit is contained in:
Tim Ledbetter 2024-05-16 06:02:55 +01:00 committed by Andreas Kling
commit b7fd39c2e6
Notes: sideshowbarker 2024-07-17 03:51:15 +09:00
5 changed files with 50 additions and 1 deletions

View file

@ -24,6 +24,8 @@ public:
String target() const { return get_attribute_value(HTML::AttributeNames::target); }
String download() const { return get_attribute_value(HTML::AttributeNames::download); }
JS::GCPtr<DOM::DOMTokenList> rel_list();
String text() const;
void set_text(String const&);
@ -68,6 +70,8 @@ private:
}
virtual Optional<ARIA::Role> default_role() const override;
JS::GCPtr<DOM::DOMTokenList> m_rel_list;
};
}