Files
serenity/Tests/LibWeb/Text/input/HTML/HTMLProgressElement-large-max-value.html
Tim Ledbetter 6bf08818be LibWeb: Don't crash when parsing large floating point number values
Previously, attempting to parse a floating point number with an integer
part larger than `(2 ^ 31) - 1` would cause the browser to crash. We now
avoid this by converting the integer part of the number to a `double`
rather than an `i32`.

(cherry picked from commit 21a32e4b6dc594c2fe8dd3ee11c829c250a103ad)
2024-11-25 12:19:33 -05:00

10 lines
281 B
HTML

<!DOCTYPE html>
<progress max="1000000000000000000000"></progress>
<script src="../include.js"></script>
<script>
test(() => {
const progressElement = document.querySelector("progress");
println(`progressElement.max: ${progressElement.max}`);
});
</script>