mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-19 06:29:43 +00:00
LibWeb/HTML: Enforce constraints on range inputs
This extends the sanitization algorithm for range inputs in order to prevent overflow, underflow and step mismatch.
This commit is contained in:
parent
57376f8701
commit
aea8650d8b
Notes:
github-actions[bot]
2025-08-14 15:07:02 +00:00
Author: https://github.com/skyz1
Commit: aea8650d8b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5812
Reviewed-by: https://github.com/gmta
Reviewed-by: https://github.com/trflynn89
4 changed files with 99 additions and 34 deletions
|
@ -401,6 +401,10 @@ private:
|
|||
bool m_is_open { false };
|
||||
|
||||
void signal_a_type_change();
|
||||
|
||||
bool is_number_underflowing(double number) const;
|
||||
bool is_number_overflowing(double number) const;
|
||||
bool is_number_mismatching_step(double number) const;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue