mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-09 10:31:51 +00:00
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`.
9 lines
281 B
HTML
9 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>
|