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

LibWeb: Add HTMLAnchorElement.referrerPolicy property

This commit is contained in:
Sam Atkins 2023-03-29 12:46:50 +01:00 committed by Linus Groh
parent 0c19d3aa58
commit 88d64fcb55
7 changed files with 87 additions and 0 deletions

View file

@ -26,6 +26,9 @@ public:
DeprecatedString text() const;
void set_text(DeprecatedString const&);
DeprecatedString referrer_policy() const;
WebIDL::ExceptionOr<void> set_referrer_policy(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); }