mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 10:12:25 -05:00
f52f2736e1
These will help us write node-type-aware template functions.
15 lines
358 B
C++
15 lines
358 B
C++
#pragma once
|
|
|
|
#include <LibHTML/DOM/HTMLElement.h>
|
|
|
|
class HTMLHtmlElement : public HTMLElement {
|
|
public:
|
|
HTMLHtmlElement(Document&, const String& tag_name);
|
|
virtual ~HTMLHtmlElement() override;
|
|
};
|
|
|
|
template<>
|
|
inline bool is<HTMLHtmlElement>(const Node& node)
|
|
{
|
|
return is<Element>(node) && to<Element>(node).tag_name().to_lowercase() == "html";
|
|
}
|