mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibWeb: Ignore negative values when setting HTMLProgressElement.max
When attempting to set `HTMLProgressElement.max` to a value not greater than 0, we were previously setting the value to 1. We now retain the previous value.
This commit is contained in:
parent
81f8866606
commit
99f8972928
Notes:
github-actions[bot]
2024-11-29 14:32:57 +00:00
Author: https://github.com/tcl3
Commit: 99f8972928
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2637
3 changed files with 5 additions and 5 deletions
|
@ -22,8 +22,8 @@ public:
|
|||
double value() const;
|
||||
WebIDL::ExceptionOr<void> set_value(double);
|
||||
|
||||
double max() const;
|
||||
WebIDL::ExceptionOr<void> set_max(double value);
|
||||
WebIDL::Double max() const;
|
||||
WebIDL::ExceptionOr<void> set_max(WebIDL::Double value);
|
||||
|
||||
double position() const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue