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

@ -1320,6 +1320,7 @@ void HTMLInputElement::user_interaction_did_change_input_value()
// then when the user changes the element's value, the user agent must queue an element task on the user interaction task source
// given the input element to fire an event named input at the input element, with the bubbles and composed attributes initialized to true
queue_an_element_task(HTML::Task::Source::UserInteraction, [this] {
// FIXME: If a string was added to this input, this input event's .data should be set to it.
auto input_event = DOM::Event::create(realm(), HTML::EventNames::input);
input_event->set_bubbles(true);
input_event->set_composed(true);