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:
Glenn Skrzypczak 2025-08-10 22:35:28 +02:00 committed by Tim Flynn
commit aea8650d8b
Notes: github-actions[bot] 2025-08-14 15:07:02 +00:00
4 changed files with 99 additions and 34 deletions

View file

@ -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;
};
}