mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-16 15:21:56 +00:00
LibWeb: Update the <textarea> shadow DOM after reseting its form owner
This generally happens after a form is submitted. We need to update the text node in the shadow DOM to actually display the reset value.
This commit is contained in:
parent
c0d594568d
commit
9eb38ce79c
Notes:
sideshowbarker
2024-07-17 00:23:42 +09:00
Author: https://github.com/trflynn89
Commit: 9eb38ce79c
Pull-request: https://github.com/SerenityOS/serenity/pull/23586
3 changed files with 40 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue