2024-06-09 15:13:38 +12:00
|
|
|
/*
|
2024-06-16 12:47:35 -04:00
|
|
|
* Copyright (c) 2024, Shannon Booth <shannon@serenityos.org>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
2024-06-09 15:13:38 +12:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <LibWeb/Bindings/PlatformObject.h>
|
|
|
|
|
|
|
|
namespace Web::HTML {
|
|
|
|
|
|
|
|
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#validitystate
|
|
|
|
class ValidityState final : public Bindings::PlatformObject {
|
2024-06-16 12:47:35 -04:00
|
|
|
WEB_PLATFORM_OBJECT(ValidityState, Bindings::PlatformObject);
|
2024-11-15 04:01:23 +13:00
|
|
|
GC_DECLARE_ALLOCATOR(ValidityState);
|
2024-06-09 15:13:38 +12:00
|
|
|
|
|
|
|
public:
|
2024-06-16 12:47:35 -04:00
|
|
|
virtual ~ValidityState() override = default;
|
2024-06-09 15:13:38 +12:00
|
|
|
|
|
|
|
private:
|
|
|
|
ValidityState(JS::Realm&);
|
|
|
|
|
2024-06-16 12:47:35 -04:00
|
|
|
virtual void initialize(JS::Realm&) override;
|
2024-06-09 15:13:38 +12:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|