mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 02:27:19 +02:00
LibWeb: Reset form association when the element's form attribute changes
This commit is contained in:
committed by
Andrew Kaster
parent
23fb1209af
commit
960dcf0e56
Notes:
sideshowbarker
2024-07-16 23:44:30 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/960dcf0e56 Pull-request: https://github.com/SerenityOS/serenity/pull/23032 Issue: https://github.com/SerenityOS/serenity/issues/22537 Issue: https://github.com/SerenityOS/serenity/issues/22705 Issue: https://github.com/SerenityOS/serenity/issues/23008 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/Lubrsi
@@ -240,9 +240,8 @@ void HTMLTextAreaElement::children_changed()
|
||||
}
|
||||
}
|
||||
|
||||
void HTMLTextAreaElement::attribute_changed(FlyString const& name, Optional<String> const& value)
|
||||
void HTMLTextAreaElement::form_associated_element_attribute_changed(FlyString const& name, Optional<String> const& value)
|
||||
{
|
||||
HTMLElement::attribute_changed(name, value);
|
||||
if (name == HTML::AttributeNames::placeholder) {
|
||||
if (m_placeholder_text_node)
|
||||
m_placeholder_text_node->set_data(value.value_or(String {}));
|
||||
|
||||
Reference in New Issue
Block a user