HTMLBodyElement.h 510 B

123456789101112131415161718
  1. #pragma once
  2. #include <LibHTML/DOM/HTMLElement.h>
  3. class HTMLBodyElement : public HTMLElement {
  4. public:
  5. HTMLBodyElement(Document&, const String& tag_name);
  6. virtual ~HTMLBodyElement() override;
  7. virtual void parse_attribute(const String&, const String&) override;
  8. virtual void apply_presentational_hints(StyleProperties&) const override;
  9. };
  10. template<>
  11. inline bool is<HTMLBodyElement>(const Node& node)
  12. {
  13. return is<Element>(node) && to<Element>(node).tag_name().to_lowercase() == "body";
  14. }