ladybird/Userland/Libraries/LibWeb/HTML/ValidityState.h
Shannon Booth e0bbbc729b LibWeb: Add stub for ValidityState
This fixes https://html5test.com/ as previously an exception was being
thrown after trying to access this attribute which would then result in
a popup about the test failing (and none of the test results being
shown).
2024-06-09 10:13:32 +02:00

27 lines
602 B
C++

/*
* Copyright (c) 2024, Shannon Booth <shannon@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#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 {
WEB_PLATFORM_OBJECT(ValidityState, Bindings::PlatformObject);
JS_DECLARE_ALLOCATOR(ValidityState);
public:
virtual ~ValidityState() override = default;
private:
ValidityState(JS::Realm&);
virtual void initialize(JS::Realm&) override;
};
}