mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Populate the data property for input events
This commit is contained in:
committed by
Jelle Raaijmakers
parent
74ca89017c
commit
b8bad97e76
Notes:
github-actions[bot]
2026-02-06 10:51:55 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/b8bad97e760 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7697 Reviewed-by: https://github.com/gmta ✅
@@ -125,7 +125,7 @@ public:
|
||||
void set_dirty_value_flag(Badge<FormAssociatedElement>, bool flag) { m_dirty_value = flag; }
|
||||
|
||||
// ^FormAssociatedTextControlElement
|
||||
virtual void did_edit_text_node(FlyString const& input_type) override;
|
||||
virtual void did_edit_text_node(FlyString const& input_type, Optional<Utf16String> const& data) override;
|
||||
virtual GC::Ptr<DOM::Text> form_associated_element_to_text_node() override { return m_text_node; }
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/form-elements.html#the-textarea-element%3Asuffering-from-being-missing
|
||||
@@ -165,6 +165,7 @@ private:
|
||||
|
||||
RefPtr<Core::Timer> m_input_event_timer;
|
||||
FlyString m_pending_input_event_type;
|
||||
Optional<Utf16String> m_pending_input_event_data;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#concept-fe-dirty
|
||||
bool m_dirty_value { false };
|
||||
|
||||
Reference in New Issue
Block a user