mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-29 13:46:31 +00:00
LibWeb: Limit HTMLTableCellElement
colSpan to allowed values
This change ensures that `colSpan` is clamped to the maximum value of 1000 if the given value is larger than 2147483647.
This commit is contained in:
parent
d02b763cd6
commit
4630b1a44b
Notes:
github-actions[bot]
2024-12-02 09:26:37 +00:00
Author: https://github.com/tcl3
Commit: 4630b1a44b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2685
4 changed files with 113 additions and 7 deletions
|
@ -34,6 +34,7 @@
|
|||
setValue(2147483647);
|
||||
setValue(2147483648);
|
||||
setValue(4294967295);
|
||||
setValue(4294967296);
|
||||
}
|
||||
|
||||
const imageButtonInputFactory = () => {
|
||||
|
@ -55,6 +56,7 @@
|
|||
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("td", "colSpan", (tableCell) => tableCell.colSpan, (tableCell, value) => tableCell.colSpan = value);
|
||||
testProperty("textarea", "maxLength", (textarea) => textarea.maxLength, (textarea, value) => textarea.maxLength = value);
|
||||
testProperty("textarea", "minLength", (textarea) => textarea.minLength, (textarea, value) => textarea.minLength = value);
|
||||
testProperty("textarea", "rows", (textarea) => textarea.rows, (textarea, value) => textarea.rows = value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue