diff --git a/Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp
index 7c8fbaff92..528b4c422f 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp
@@ -368,7 +368,7 @@ Optional HTMLInputElement::placeholder_value() const
void HTMLInputElement::create_shadow_tree_if_needed()
{
- if (shadow_root())
+ if (shadow_root_internal())
return;
// FIXME: This could be better factored. Everything except the below types becomes a text input.