HTMLElement.h 413 B

1234567891011121314151617181920
  1. #pragma once
  2. #include <LibHTML/DOM/Element.h>
  3. class HTMLElement : public Element {
  4. public:
  5. HTMLElement(Document&, const String& tag_name);
  6. virtual ~HTMLElement() override;
  7. String title() const { return attribute("title"); }
  8. private:
  9. virtual bool is_html_element() const final { return true; }
  10. };
  11. template<>
  12. inline bool is<HTMLElement>(const Node& node)
  13. {
  14. return node.is_html_element();
  15. }