LibWeb: Add two FIXMEs about input events' missing .data value

For both `<input>` and `<textarea>` elements, we actually need to
provide the input events with the strings that were added to them.
This commit is contained in:
Jelle Raaijmakers 2025-05-16 15:12:47 +02:00 committed by Andreas Kling
parent e941965b01
commit 1c77b42a44
Notes: github-actions[bot] 2025-05-16 22:30:21 +00:00
2 changed files with 2 additions and 0 deletions

View file

@ -471,6 +471,7 @@ void HTMLTextAreaElement::did_edit_text_node()
void HTMLTextAreaElement::queue_firing_input_event()
{
queue_an_element_task(HTML::Task::Source::UserInteraction, [this]() {
// FIXME: If a string was added to this textarea, this input event's .data should be set to it.
auto change_event = DOM::Event::create(realm(), HTML::EventNames::input, { .bubbles = true, .composed = true });
dispatch_event(change_event);
});