1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:58:12 +00:00

LibWeb: Add HTMLAnchorElement.text getter and setter

And a FIXME for the missing `referrerPolicy` property.
This commit is contained in:
Sam Atkins 2023-03-29 12:38:32 +01:00 committed by Linus Groh
parent 888efe367e
commit 0c19d3aa58
3 changed files with 19 additions and 0 deletions

View file

@ -23,6 +23,9 @@ public:
DeprecatedString target() const { return attribute(HTML::AttributeNames::target); }
DeprecatedString download() const { return attribute(HTML::AttributeNames::download); }
DeprecatedString text() const;
void set_text(DeprecatedString const&);
// ^EventTarget
// https://html.spec.whatwg.org/multipage/interaction.html#the-tabindex-attribute:the-a-element
virtual bool is_focusable() const override { return has_attribute(HTML::AttributeNames::href); }