2019-09-29 06:59:38 -03:00
|
|
|
#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"); }
|
|
|
|
|
};
|
2019-10-06 15:37:39 -03:00
|
|
|
|
|
|
|
|
template<>
|
|
|
|
|
inline bool is<HTMLAnchorElement>(const Node& node)
|
|
|
|
|
{
|
|
|
|
|
return is<Element>(node) && to<Element>(node).tag_name().to_lowercase() == "a";
|
|
|
|
|
}
|