mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-06 17:11: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
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue