diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLAreaElement.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/HTMLAreaElement.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLAreaElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLAreaElement.cpp index 04056ecfa7..88c9b5ca15 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLAreaElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLAreaElement.cpp @@ -17,4 +17,23 @@ HTMLAreaElement::~HTMLAreaElement() { } + +void HTMLAreaElement::parse_attribute(FlyString const& name, String const& value) +{ + HTMLElement::parse_attribute(name, value); + if (name == HTML::AttributeNames::href) { + set_the_url(); + } +} + +String HTMLAreaElement::hyperlink_element_utils_href() const +{ + return attribute(HTML::AttributeNames::href); +} + +void HTMLAreaElement::set_hyperlink_element_utils_href(String href) +{ + set_attribute(HTML::AttributeNames::href, move(href)); +} + } |