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:
Tim Ledbetter 2024-11-30 22:29:22 +00:00 committed by Andreas Kling
parent d02b763cd6
commit 4630b1a44b
Notes: github-actions[bot] 2024-12-02 09:26:37 +00:00
4 changed files with 113 additions and 7 deletions

View file

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