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:
Tim Ledbetter 2024-11-29 12:25:22 +00:00 committed by Andreas Kling
commit 99f8972928
Notes: github-actions[bot] 2024-11-29 14:32:57 +00:00
3 changed files with 5 additions and 5 deletions

View file

@ -9,4 +9,4 @@ max attribute after setting max attribute to 100: 100
value attribute after setting max attribute to 101: 100
value attribute after setting value attribute to -1: 0
value attribute after setting max attribute to 0: 0
max attribute after setting max attribute to 0: 1
max attribute after setting max attribute to 0: 100