HTMLFormElement.h 495 B

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