summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/HTMLAnchorElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLAnchorElement.h')
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLAnchorElement.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLAnchorElement.h b/Userland/Libraries/LibWeb/HTML/HTMLAnchorElement.h
index 1888a45eae..8930da4949 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLAnchorElement.h
+++ b/Userland/Libraries/LibWeb/HTML/HTMLAnchorElement.h
@@ -7,20 +7,31 @@
#pragma once
#include <LibWeb/HTML/HTMLElement.h>
+#include <LibWeb/HTML/HTMLHyperlinkElementUtils.h>
namespace Web::HTML {
-class HTMLAnchorElement final : public HTMLElement {
+class HTMLAnchorElement final
+ : public HTMLElement
+ , public HTMLHyperlinkElementUtils {
public:
using WrapperType = Bindings::HTMLAnchorElementWrapper;
HTMLAnchorElement(DOM::Document&, QualifiedName);
virtual ~HTMLAnchorElement() override;
- String href() const { return attribute(HTML::AttributeNames::href); }
String target() const { return attribute(HTML::AttributeNames::target); }
virtual bool is_focusable() const override { return has_attribute(HTML::AttributeNames::href); }
+
+private:
+ // ^DOM::Element
+ virtual void parse_attribute(FlyString const& name, String const& value) override;
+
+ // ^HTML::HTMLHyperlinkElementUtils
+ virtual DOM::Document const& hyperlink_element_utils_document() const override { return document(); }
+ virtual String hyperlink_element_utils_href() const override;
+ virtual void set_hyperlink_element_utils_href(String) override;
};
}