LibWeb: Don't create shadow root for input hidden

This commit is contained in:
Bastiaan van der Plaat 2023-10-04 21:28:39 +02:00 committed by Andreas Kling
parent 3e778fe29c
commit d290569535
Notes: sideshowbarker 2024-07-17 09:48:50 +09:00

View file

@ -514,6 +514,7 @@ void HTMLInputElement::create_shadow_tree_if_needed()
return;
switch (type_state()) {
case TypeAttributeState::Hidden:
case TypeAttributeState::RadioButton:
case TypeAttributeState::Checkbox:
case TypeAttributeState::Button: