
HtmlView now calls Node::enclosing_link_element() to find the nearest ancestor <a> element. This patch also adds HTMLElement and HTMLAnchorElement.
11 lines
266 B
C++
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"); }
|
|
};
|