mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-26 12:17:52 +00:00
LibWeb: Limit HTMLInputElement.size
to allowed values
Attempting to set `HTMLInputElement.size` to 0 via IDL now throws an IndexSizeError DOMException. Attempting to set it to a value larger than 2147483647 results in it being set to the default value.
This commit is contained in:
parent
08812a1f88
commit
ae0c87c747
Notes:
github-actions[bot]
2024-11-29 08:50:16 +00:00
Author: https://github.com/tcl3
Commit: ae0c87c747
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2619
Reviewed-by: https://github.com/stelar7
4 changed files with 26 additions and 5 deletions
|
@ -23,6 +23,7 @@
|
|||
}
|
||||
|
||||
testProperty("img", "hspace", (img) => img.hspace, (img, value) => img.hspace = value);
|
||||
testProperty("input", "size", (input) => input.size, (input, value) => input.size = value);
|
||||
testProperty("marquee", "scrollAmount", (marquee) => marquee.scrollAmount, (marquee, value) => marquee.scrollAmount = value);
|
||||
testProperty("marquee", "scrollDelay", (marquee) => marquee.scrollDelay, (marquee, value) => marquee.scrollDelay = value);
|
||||
testProperty("textarea", "rows", (textarea) => textarea.rows, (textarea, value) => textarea.rows = value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue