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:
Tim Ledbetter 2024-11-26 20:40:48 +00:00 committed by Andreas Kling
commit a8719a706b
Notes: github-actions[bot] 2024-11-27 10:03:59 +00:00
3 changed files with 40 additions and 2 deletions

View file

@ -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>