diff --git a/Libraries/LibWeb/DOM/HTMLInputElement.cpp b/Libraries/LibWeb/DOM/HTMLInputElement.cpp index 78009d5329..34be76773f 100644 --- a/Libraries/LibWeb/DOM/HTMLInputElement.cpp +++ b/Libraries/LibWeb/DOM/HTMLInputElement.cpp @@ -52,6 +52,9 @@ RefPtr HTMLInputElement::create_layout_node(const StyleProperties*) ASSERT(frame.html_view()); auto& html_view = const_cast(*frame.html_view()); + if (type() == "hidden") + return nullptr; + RefPtr widget; if (type() == "submit") { auto& button = html_view.add(value());