mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-24 02:09:28 +00:00
LibWeb: Allow progress element value to be set higher than the max value
Previously, we returned from the value setter if the specified value was above the max value. This is not required, as the getter clamps the returned value to the max value.
This commit is contained in:
committed by
Andreas Kling
parent
e795c24fdd
commit
ecbc686bc8
@@ -48,7 +48,7 @@ double HTMLProgressElement::value() const
|
||||
|
||||
WebIDL::ExceptionOr<void> HTMLProgressElement::set_value(double value)
|
||||
{
|
||||
if (value < 0 || value > max())
|
||||
if (value < 0)
|
||||
return {};
|
||||
|
||||
TRY(set_attribute(HTML::AttributeNames::value, MUST(String::number(value))));
|
||||
|
||||
Reference in New Issue
Block a user