mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb: Limit HTMLTextAreaElement attributes to allowed values
If `HTMLTextAreaElement.rows` or `HTMLTextAreaElement.cols` is set to a value larger than 2147483647, then it should be set to its default value.
This commit is contained in:
committed by
Andreas Kling
parent
a8719a706b
commit
7fe3bf07e2
Notes:
github-actions[bot]
2024-11-27 10:03:52 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/7fe3bf07e20 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2599
@@ -25,5 +25,7 @@
|
||||
testProperty("img", "hspace", (img) => img.hspace, (img, value) => img.hspace = 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);
|
||||
testProperty("textarea", "cols", (textarea) => textarea.cols, (textarea, value) => textarea.cols = value);
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user