|
@@ -72,6 +72,9 @@ void HTMLTextAreaElement::did_receive_focus()
|
|
|
return;
|
|
|
m_text_node->invalidate_style();
|
|
|
|
|
|
+ if (m_placeholder_text_node)
|
|
|
+ m_placeholder_text_node->invalidate_style();
|
|
|
+
|
|
|
document().set_cursor_position(DOM::Position::create(realm(), *m_text_node, 0));
|
|
|
}
|
|
|
|
|
@@ -80,6 +83,9 @@ void HTMLTextAreaElement::did_lose_focus()
|
|
|
if (m_text_node)
|
|
|
m_text_node->invalidate_style();
|
|
|
|
|
|
+ if (m_placeholder_text_node)
|
|
|
+ m_placeholder_text_node->invalidate_style();
|
|
|
+
|
|
|
// The change event fires when the value is committed, if that makes sense for the control,
|
|
|
// or else when the control loses focus
|
|
|
queue_an_element_task(HTML::Task::Source::UserInteraction, [this] {
|