Tim Ledbetter
44cf457fd2
LibWeb: Limit HTMLTableColElement
span to allowed values
...
This change ensures that `span` is clamped to the maximum value of 1000
if the given value is larger than 2147483647.
2024-12-02 10:25:27 +01:00
Tim Ledbetter
9fc2a63131
LibWeb: Limit HTMLTableCellElement
rowSpan to allowed values
...
This change ensures that `rowSpan` is clamped to the maximum value of
65534 if the given value is larger than 2147483647.
2024-12-02 10:25:27 +01:00
Tim Ledbetter
4630b1a44b
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.
2024-12-02 10:25:27 +01:00
Tim Ledbetter
7097152ebc
LibWeb: Restrict HTMLTextAreaElement::min_length
to the range of i32
2024-12-02 10:25:27 +01:00
Tim Ledbetter
ac7fad52f6
LibWeb: Restrict HTMLTextAreaElement::max_length
to the range of i32
2024-12-02 10:25:27 +01:00
Tim Ledbetter
bc484258c2
LibWeb: Restrict HTMLInputElement::min_length
to the range of i32
2024-12-02 10:25:27 +01:00
Tim Ledbetter
40d6b9d44e
LibWeb: Restrict HTMLInputElement::max_length
to the range of i32
2024-12-02 10:25:27 +01:00
Tim Ledbetter
a486c86eee
LibWeb: Limit HTMLCanvasElement
width and height to allowed values
...
Setting the `width` or `height` properties of `HTMLCanvasElement` to a
value greater than 2147483647 will now cause the property to be set to
its default value.
2024-12-01 15:12:04 +00:00
Tim Ledbetter
b05bc71002
LibWeb: Limit HTMLImageElement
width and height to allowed values
...
Setting the `width` or `height` properties of `HTMLImageElement` to a
value greater than 2147483647 will now cause the property to be set to
0.
2024-12-01 15:12:04 +00:00
Tim Ledbetter
b39fdcfec2
LibWeb: Implement the HTMLInputElement.height
attribute
...
This allows the height of an image button input to be set and queried.
2024-11-30 11:01:33 +01:00
Tim Ledbetter
45a2823e08
LibWeb: Implement the HTMLInputElement.width
attribute
...
This allows the width of an image button input to be set and queried.
2024-11-30 11:01:33 +01:00
Tim Ledbetter
6218f1a609
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.
2024-11-29 13:30:57 +01:00
Tim Ledbetter
aafc829e6d
LibWeb: Don't allow HTMLTextAreaElement
rows and cols to be set to 0
...
In this case we should fall back to the default value.
2024-11-29 09:48:45 +01:00
Tim Ledbetter
ae0c87c747
LibWeb: Limit HTMLInputElement.size
to allowed values
...
Attempting to set `HTMLInputElement.size` to 0 via IDL now throws an
IndexSizeError DOMException. Attempting to set it to a value larger
than 2147483647 results in it being set to the default value.
2024-11-29 09:48:45 +01:00
Tim Ledbetter
7fe3bf07e2
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.
2024-11-27 11:00:25 +01:00
Tim Ledbetter
a8719a706b
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.
2024-11-27 11:00:25 +01:00
Tim Ledbetter
e5c99b475a
IDLGenerators: Set reflected unsigned long value according to spec
...
Setting an unsigned long attribute with IDL to a value outside the
range 0 to 2147483647, the value should be set to the default value.
2024-11-27 11:00:25 +01:00