LibWeb: Limit HTMLTableColElement span to allowed values

This change ensures that `span` is clamped to the maximum value of 1000
if the given value is larger than 2147483647.
This commit is contained in:
Tim Ledbetter 2024-11-30 22:56:41 +00:00 committed by Andreas Kling
commit 44cf457fd2
Notes: github-actions[bot] 2024-12-02 09:26:24 +00:00
4 changed files with 37 additions and 4 deletions

View file

@ -45,6 +45,7 @@
testProperty("canvas", "width", (canvas) => canvas.width, (canvas, value) => canvas.width = value);
testProperty("canvas", "height", (canvas) => canvas.height, (canvas, value) => canvas.height = value);
testProperty("colgroup", "span", (colgroup) => colgroup.span, (colgroup, value) => colgroup.span = value);
testProperty("img", "height", (img) => img.height, (img, value) => img.height = value);
testProperty("img", "hspace", (img) => img.hspace, (img, value) => img.hspace = value);
testProperty("img", "width", (img) => img.width, (img, value) => img.width = value);