LibWeb/HTML: Handle missing second component in datetime-local

We were previously not checking for EOF which meant we were not
handling seconds being missing in the time component.
This commit is contained in:
Shannon Booth
2025-03-19 01:53:26 +13:00
committed by Tim Flynn
parent a457ebeec5
commit 894c51e8e7
Notes: github-actions[bot] 2025-03-18 19:06:05 +00:00
3 changed files with 46 additions and 37 deletions

View File

@@ -35,7 +35,7 @@ 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: NaN
datetime-local did not throw: 0
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