mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-31 22:56:04 +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
|
@ -77,6 +77,26 @@ marquee.getAttribute("scrolldelay") after marquee.setAttribute("scrollDelay", "4
|
|||
marquee.scrollDelay after marquee.setAttribute("scrolldelay", "4294967295"): 85
|
||||
marquee.getAttribute("scrolldelay") after marquee.scrollDelay = 4294967295: 85
|
||||
marquee.scrollDelay after marquee.scrollDelay = 4294967295: 85
|
||||
select.getAttribute("size") after select.setAttribute("size", "0"): 0
|
||||
select.size after select.setAttribute("size", "0"): 0
|
||||
select.getAttribute("size") after select.size = 0: 0
|
||||
select.size after select.size = 0: 0
|
||||
select.getAttribute("size") after select.setAttribute("size", "1"): 1
|
||||
select.size after select.setAttribute("size", "1"): 1
|
||||
select.getAttribute("size") after select.size = 1: 1
|
||||
select.size after select.size = 1: 1
|
||||
select.getAttribute("size") after select.setAttribute("size", "2147483647"): 2147483647
|
||||
select.size after select.setAttribute("size", "2147483647"): 2147483647
|
||||
select.getAttribute("size") after select.size = 2147483647: 2147483647
|
||||
select.size after select.size = 2147483647: 2147483647
|
||||
select.getAttribute("size") after select.setAttribute("size", "2147483648"): 2147483648
|
||||
select.size after select.setAttribute("size", "2147483648"): 0
|
||||
select.getAttribute("size") after select.size = 2147483648: 0
|
||||
select.size after select.size = 2147483648: 0
|
||||
select.getAttribute("size") after select.setAttribute("size", "4294967295"): 4294967295
|
||||
select.size after select.setAttribute("size", "4294967295"): 0
|
||||
select.getAttribute("size") after select.size = 4294967295: 0
|
||||
select.size after select.size = 4294967295: 0
|
||||
textarea.getAttribute("rows") after textarea.setAttribute("rows", "0"): 0
|
||||
textarea.rows after textarea.setAttribute("rows", "0"): 2
|
||||
textarea.getAttribute("rows") after textarea.rows = 0: 2
|
||||
|
@ -116,4 +136,4 @@ textarea.cols after textarea.cols = 2147483648: 20
|
|||
textarea.getAttribute("cols") after textarea.setAttribute("cols", "4294967295"): 4294967295
|
||||
textarea.cols after textarea.setAttribute("cols", "4294967295"): 20
|
||||
textarea.getAttribute("cols") after textarea.cols = 4294967295: 20
|
||||
textarea.cols after textarea.cols = 4294967295: 20
|
||||
textarea.cols after textarea.cols = 4294967295: 20
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue