mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-19 23:53:20 +00:00
22 lines
632 B
C
22 lines
632 B
C
![]() |
#pragma once
|
||
|
|
||
|
#include <LibHTML/DOM/HTMLElement.h>
|
||
|
|
||
|
class HTMLInputElement : public HTMLElement {
|
||
|
public:
|
||
|
HTMLInputElement(Document&, const String& tag_name);
|
||
|
virtual ~HTMLInputElement() override;
|
||
|
|
||
|
virtual RefPtr<LayoutNode> create_layout_node(const StyleProperties* parent_style) const override;
|
||
|
|
||
|
String type() const { return attribute("type"); }
|
||
|
String value() const { return attribute("value"); }
|
||
|
String name() const { return attribute("name"); }
|
||
|
};
|
||
|
|
||
|
template<>
|
||
|
inline bool is<HTMLInputElement>(const Node& node)
|
||
|
{
|
||
|
return is<Element>(node) && to<Element>(node).tag_name().to_lowercase() == "input";
|
||
|
}
|