mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02: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:
committed by
Andreas Kling
parent
d02b763cd6
commit
4630b1a44b
Notes:
github-actions[bot]
2024-12-02 09:26:37 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/4630b1a44bd Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2685
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user