) [11,11 185.875x17]
+ PaintableWithLines (BlockContainer
) [11,11 185.875x17]
+ TextPaintable (TextNode<#text>)
+ PaintableWithLines (BlockContainer(anonymous)) [8,58 784x0]
diff --git a/Tests/LibWeb/Layout/input/textarea-reset.html b/Tests/LibWeb/Layout/input/textarea-reset.html
new file mode 100644
index 00000000000..a5e1f578263
--- /dev/null
+++ b/Tests/LibWeb/Layout/input/textarea-reset.html
@@ -0,0 +1,10 @@
+
+
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()