mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-10 11:01:53 +00:00
This commit brings the way we parse time inputs closer to the spec by no longer ignoring milliseconds in time strings.
13 lines
448 B
HTML
13 lines
448 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
const inputElement = document.createElement("input");
|
|
inputElement.type = "time";
|
|
["invalid", "xx:34:56", "12:xx:56", "12:34:xx", "12:34:60"].forEach(value => {
|
|
inputElement.value = value;
|
|
println(`Parsed ${value} as ${inputElement.valueAsNumber}`);
|
|
});
|
|
println("PASS (didn't crash)");
|
|
});
|
|
</script>
|