mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-06 00:51:51 +00:00
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:
parent
e941965b01
commit
1c77b42a44
Notes:
github-actions[bot]
2025-05-16 22:30:21 +00:00
Author: https://github.com/gmta
Commit: 1c77b42a44
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4779
2 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue