From 9eb38ce79c2828f8cc280d694aec71dc1c5894ac Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Thu, 14 Mar 2024 10:33:15 -0400 Subject: [PATCH] LibWeb: Update the + + diff --git a/Userland/Libraries/LibWeb/HTML/HTMLTextAreaElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLTextAreaElement.cpp index c49bb17f064..1995b52ce3a 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLTextAreaElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLTextAreaElement.cpp @@ -96,7 +96,10 @@ void HTMLTextAreaElement::reset_algorithm() // and set the raw value of element to its child text content. set_raw_value(child_text_content()); - update_placeholder_visibility(); + if (m_text_node) { + m_text_node->set_text_content(m_raw_value); + update_placeholder_visibility(); + } } void HTMLTextAreaElement::form_associated_element_was_inserted()