2019-10-04 21:05:52 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <LibHTML/DOM/HTMLElement.h>
|
|
|
|
|
|
|
|
class HTMLBodyElement : public HTMLElement {
|
|
|
|
public:
|
|
|
|
HTMLBodyElement(Document&, const String& tag_name);
|
|
|
|
virtual ~HTMLBodyElement() override;
|
|
|
|
|
2019-10-06 10:11:54 +02:00
|
|
|
virtual void parse_attribute(const String&, const String&) override;
|
2019-10-04 21:05:52 +02:00
|
|
|
virtual void apply_presentational_hints(StyleProperties&) const override;
|
|
|
|
};
|
2019-10-06 20:47:57 +02:00
|
|
|
|
|
|
|
template<>
|
|
|
|
inline bool is<HTMLBodyElement>(const Node& node)
|
|
|
|
{
|
|
|
|
return is<Element>(node) && to<Element>(node).tag_name().to_lowercase() == "body";
|
|
|
|
}
|