ladybird/Libraries/LibHTML/DOM/HTMLAnchorElement.h
Andreas Kling b477aff843 LibHTML: Detect hovering over links
HtmlView now calls Node::enclosing_link_element() to find the nearest
ancestor <a> element.

This patch also adds HTMLElement and HTMLAnchorElement.
2019-09-29 11:59:38 +02:00

11 lines
266 B
C++

#pragma once
#include <LibHTML/DOM/HTMLElement.h>
class HTMLAnchorElement : public HTMLElement {
public:
HTMLAnchorElement(Document&, const String& tag_name);
virtual ~HTMLAnchorElement() override;
String href() const { return attribute("href"); }
};