1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 11:54:57 +00:00

LibWeb: Use shadow_root_internal() when building <input> UA shadow DOM

This commit is contained in:
Andreas Kling 2023-03-09 20:55:27 +01:00
parent e6448f137e
commit 806d32c88f

View file

@ -368,7 +368,7 @@ Optional<DeprecatedString> 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.