mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibWeb: Implement the HTMLAnchorElement.relList
attribute
This returns a DOMTokenList that reflects the `rel` attribute.
This commit is contained in:
parent
63246577d2
commit
b7fd39c2e6
Notes:
sideshowbarker
2024-07-17 03:51:15 +09:00
Author: https://github.com/tcl3
Commit: b7fd39c2e6
Pull-request: https://github.com/SerenityOS/serenity/pull/24342
5 changed files with 50 additions and 1 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue