mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-02 17:28:48 +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
|
@ -18,10 +18,10 @@ class HTMLTableCellElement final : public HTMLElement {
|
|||
public:
|
||||
virtual ~HTMLTableCellElement() override;
|
||||
|
||||
unsigned col_span() const;
|
||||
WebIDL::UnsignedLong col_span() const;
|
||||
unsigned row_span() const;
|
||||
|
||||
WebIDL::ExceptionOr<void> set_col_span(unsigned);
|
||||
WebIDL::ExceptionOr<void> set_col_span(WebIDL::UnsignedLong);
|
||||
WebIDL::ExceptionOr<void> set_row_span(unsigned);
|
||||
|
||||
WebIDL::Long cell_index() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue