mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 02:29:21 +00:00
LibWeb: Limit HTMLSelectElement.size
to allowed values
This change ensures that the correct default value of 0 is used and that values greater than 2147483647 will fall back to the default value. It also splits the display size concept into a separate method, as this isn't supposed to be used when getting the IDL property.
This commit is contained in:
parent
6bfc35b6a9
commit
6218f1a609
Notes:
github-actions[bot]
2024-11-29 12:39:58 +00:00
Author: https://github.com/tcl3
Commit: 6218f1a609
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2635
Reviewed-by: https://github.com/AtkinsSJ ✅
5 changed files with 41 additions and 4 deletions
|
@ -31,6 +31,7 @@
|
|||
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("select", "size", (select) => select.size, (select, value) => select.size = value);
|
||||
testProperty("textarea", "rows", (textarea) => textarea.rows, (textarea, value) => textarea.rows = value);
|
||||
testProperty("textarea", "cols", (textarea) => textarea.cols, (textarea, value) => textarea.cols = value);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue