LibWeb: Restrict HTMLInputElement::max_length to the range of i32

This commit is contained in:
Tim Ledbetter
2024-11-30 20:00:53 +00:00
committed by Andreas Kling
parent 163ec18593
commit 40d6b9d44e
Notes: github-actions[bot] 2024-12-02 09:27:09 +00:00
3 changed files with 20 additions and 1 deletions

View File

@@ -47,6 +47,7 @@
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);
testProperty("input", "maxLength", (input) => input.maxLength, (input, value) => input.maxLength = value);
testProperty("input", "size", (input) => input.size, (input, value) => input.size = value);
testProperty(imageButtonInputFactory, "height", (input) => input.height, (input, value) => input.height = value);
testProperty(imageButtonInputFactory, "width", (input) => input.width, (input, value) => input.width = value);