mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-29 07:48:47 +00:00
LibWeb: Don't generate a layout node for <input type="hidden">
This commit is contained in:
parent
8fae4ee931
commit
6886c6efa6
Notes:
sideshowbarker
2024-07-19 06:59:22 +09:00
Author: https://github.com/awesomekling
Commit: 6886c6efa6
1 changed files with 3 additions and 0 deletions
|
@ -52,6 +52,9 @@ RefPtr<LayoutNode> HTMLInputElement::create_layout_node(const StyleProperties*)
|
|||
ASSERT(frame.html_view());
|
||||
auto& html_view = const_cast<HtmlView&>(*frame.html_view());
|
||||
|
||||
if (type() == "hidden")
|
||||
return nullptr;
|
||||
|
||||
RefPtr<GUI::Widget> widget;
|
||||
if (type() == "submit") {
|
||||
auto& button = html_view.add<GUI::Button>(value());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue