mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-05 15:49:15 +00:00
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.
This commit is contained in:
parent
9fc2a63131
commit
44cf457fd2
Notes:
github-actions[bot]
2024-12-02 09:26:24 +00:00
Author: https://github.com/tcl3
Commit: 44cf457fd2
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2685
4 changed files with 37 additions and 4 deletions
|
@ -7,6 +7,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <LibWeb/HTML/HTMLElement.h>
|
||||
#include <LibWeb/WebIDL/Types.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
|
@ -17,8 +18,8 @@ class HTMLTableColElement final : public HTMLElement {
|
|||
public:
|
||||
virtual ~HTMLTableColElement() override;
|
||||
|
||||
unsigned span() const;
|
||||
WebIDL::ExceptionOr<void> set_span(unsigned);
|
||||
WebIDL::UnsignedLong span() const;
|
||||
WebIDL::ExceptionOr<void> set_span(WebIDL::UnsignedLong);
|
||||
|
||||
private:
|
||||
HTMLTableColElement(DOM::Document&, DOM::QualifiedName);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue