2020-08-01 05:04:26 +03:00
|
|
|
/*
|
2021-04-28 23:46:44 +03:00
|
|
|
* Copyright (c) 2020, the SerenityOS developers.
|
2020-08-01 05:04:26 +03:00
|
|
|
*
|
2021-04-22 11:24:48 +03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-08-01 05:04:26 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2023-01-29 01:23:16 +03:00
|
|
|
#include <LibWeb/ARIA/Roles.h>
|
2021-10-14 18:18:49 +03:00
|
|
|
#include <LibWeb/HTML/FormAssociatedElement.h>
|
2022-03-24 01:55:54 +03:00
|
|
|
#include <LibWeb/HTML/HTMLElement.h>
|
2020-08-01 05:04:26 +03:00
|
|
|
|
|
|
|
namespace Web::HTML {
|
|
|
|
|
2022-03-24 01:55:54 +03:00
|
|
|
class HTMLFieldSetElement final
|
|
|
|
: public HTMLElement
|
|
|
|
, public FormAssociatedElement {
|
2022-08-28 14:42:07 +03:00
|
|
|
WEB_PLATFORM_OBJECT(HTMLFieldSetElement, HTMLElement);
|
2022-03-24 01:55:54 +03:00
|
|
|
FORM_ASSOCIATED_ELEMENT(HTMLElement, HTMLFieldSetElement)
|
|
|
|
|
2020-08-01 05:04:26 +03:00
|
|
|
public:
|
|
|
|
virtual ~HTMLFieldSetElement() override;
|
|
|
|
|
2022-12-04 21:02:33 +03:00
|
|
|
DeprecatedString const& type() const
|
2020-09-18 10:49:51 +03:00
|
|
|
{
|
2022-12-04 21:02:33 +03:00
|
|
|
static DeprecatedString fieldset = "fieldset";
|
2020-08-01 05:04:26 +03:00
|
|
|
return fieldset;
|
|
|
|
}
|
2022-03-02 00:03:30 +03:00
|
|
|
|
2022-09-30 18:21:34 +03:00
|
|
|
bool is_disabled() const;
|
|
|
|
|
2022-03-02 00:03:30 +03:00
|
|
|
// ^FormAssociatedElement
|
|
|
|
// https://html.spec.whatwg.org/multipage/forms.html#category-listed
|
|
|
|
virtual bool is_listed() const override { return true; }
|
|
|
|
|
|
|
|
// https://html.spec.whatwg.org/multipage/forms.html#category-autocapitalize
|
|
|
|
virtual bool is_auto_capitalize_inheriting() const override { return true; }
|
2022-08-28 14:42:07 +03:00
|
|
|
|
2023-01-29 01:23:16 +03:00
|
|
|
virtual Optional<ARIA::Role> default_role() const override { return ARIA::Role::group; }
|
2022-11-29 02:58:13 +03:00
|
|
|
|
2022-08-28 14:42:07 +03:00
|
|
|
private:
|
|
|
|
HTMLFieldSetElement(DOM::Document&, DOM::QualifiedName);
|
2023-01-10 14:28:20 +03:00
|
|
|
|
2023-01-28 20:33:35 +03:00
|
|
|
virtual JS::ThrowCompletionOr<void> initialize(JS::Realm&) override;
|
2020-08-01 05:04:26 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|