mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibWeb: Deduplicate the firing of input events in HTMLInputElement
Input elements without a defined user-interaction behavior need to fire an input event when the user changes the element's value in some way. This change moves the code to do this into its own function and adds some spec text to explain what is being done.
This commit is contained in:
parent
bd73dd316d
commit
a3d12e569c
Notes:
sideshowbarker
2024-07-17 03:05:16 +09:00
Author: https://github.com/tcl3
Commit: a3d12e569c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/265
2 changed files with 29 additions and 36 deletions
|
@ -255,6 +255,8 @@ private:
|
|||
void handle_readonly_attribute(Optional<String> const& value);
|
||||
WebIDL::ExceptionOr<void> handle_src_attribute(String const& value);
|
||||
|
||||
void user_interaction_did_change_input_value();
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/input.html#value-sanitization-algorithm
|
||||
String value_sanitization_algorithm(String const&) const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue