mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 23:59:49 +00:00
LibWeb: Add HTMLAnchorElement.text getter and setter
And a FIXME for the missing `referrerPolicy` property.
This commit is contained in:
parent
888efe367e
commit
0c19d3aa58
Notes:
sideshowbarker
2024-07-17 10:05:47 +09:00
Author: https://github.com/AtkinsSJ
Commit: 0c19d3aa58
Pull-request: https://github.com/SerenityOS/serenity/pull/18086
Reviewed-by: https://github.com/linusg
3 changed files with 19 additions and 0 deletions
|
@ -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); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue