LibWeb/HTML: Correctly convert number to time/local datetime string

This fixes a bug where non-zero milliseconds were previously not
included if the second component was zero.
This commit is contained in:
Glenn Skrzypczak
2025-08-11 08:03:32 +02:00
committed by Tim Flynn
parent 354fd56046
commit ec807d40dd
Notes: github-actions[bot] 2025-08-14 15:06:42 +00:00
3 changed files with 10 additions and 14 deletions

View File

@@ -34,8 +34,8 @@ password threw exception: InvalidStateError: valueAsNumber: Invalid input type u
date did not throw: 0
month did not throw: 100
week did not throw: 345600000
time did not throw: 0
datetime-local did not throw: 0
time did not throw: 100
datetime-local did not throw: 100
color threw exception: InvalidStateError: valueAsNumber: Invalid input type used
checkbox threw exception: InvalidStateError: valueAsNumber: Invalid input type used
radio threw exception: InvalidStateError: valueAsNumber: Invalid input type used