mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb: Don't crash when parsing HTMLInputElement invalid time values
This commit is contained in:
committed by
Tim Ledbetter
parent
b0fc8b67d6
commit
fe42e2719f
Notes:
github-actions[bot]
2024-08-20 22:31:28 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/fe42e2719f1 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1150 Reviewed-by: https://github.com/AtkinsSJ ✅
@@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<script src="../include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
const inputElement = document.createElement("input");
|
||||
inputElement.type = "time";
|
||||
inputElement.value = "invalid";
|
||||
inputElement.value = "xx:34:56";
|
||||
inputElement.value = "12:xx:56";
|
||||
inputElement.value = "12:34:xx";
|
||||
println("PASS (didn't crash)");
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user