HTMLBRElement.h 458 B

1234567891011121314151617
  1. #pragma once
  2. #include <LibHTML/DOM/HTMLElement.h>
  3. class HTMLBRElement final : public HTMLElement {
  4. public:
  5. HTMLBRElement(Document&, const String& tag_name);
  6. virtual ~HTMLBRElement() override;
  7. virtual RefPtr<LayoutNode> create_layout_node(const StyleProperties* parent_style) const override;
  8. };
  9. template<>
  10. inline bool is<HTMLBRElement>(const Node& node)
  11. {
  12. return is<Element>(node) && to<Element>(node).tag_name().to_lowercase() == "br";
  13. }