2020-08-01 03:04:26 +01:00
|
|
|
/*
|
2021-04-28 22:46:44 +02:00
|
|
|
* Copyright (c) 2020, the SerenityOS developers.
|
2021-10-03 19:39:12 +02:00
|
|
|
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
|
2020-08-01 03:04:26 +01:00
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-08-01 03:04:26 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <LibWeb/HTML/HTMLElement.h>
|
2021-10-03 19:39:12 +02:00
|
|
|
#include <LibWeb/HTML/HTMLHyperlinkElementUtils.h>
|
2020-08-01 03:04:26 +01:00
|
|
|
|
|
|
|
namespace Web::HTML {
|
|
|
|
|
2021-10-03 19:39:12 +02:00
|
|
|
class HTMLAreaElement final
|
|
|
|
: public HTMLElement
|
|
|
|
, public HTMLHyperlinkElementUtils {
|
2020-08-01 03:04:26 +01:00
|
|
|
public:
|
|
|
|
using WrapperType = Bindings::HTMLAreaElementWrapper;
|
|
|
|
|
2022-02-18 21:00:52 +01:00
|
|
|
HTMLAreaElement(DOM::Document&, DOM::QualifiedName);
|
2020-08-01 03:04:26 +01:00
|
|
|
virtual ~HTMLAreaElement() override;
|
2021-10-03 19:39:12 +02:00
|
|
|
|
|
|
|
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;
|
2020-08-01 03:04:26 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|