mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
LibWeb: Limit HTMLMarqueeElement attributes to allowed values
If `HTMLMarqueeElemnt.scrollAmount` or `HTMLMarqueeElemnt.scrollDelay` is set to a value larger than 2147483647, then it should be set to its default value.
This commit is contained in:
parent
e5c99b475a
commit
a8719a706b
Notes:
github-actions[bot]
2024-11-27 10:03:59 +00:00
Author: https://github.com/tcl3
Commit: a8719a706b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2599
3 changed files with 40 additions and 2 deletions
|
@ -23,5 +23,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);
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue