diff options
author | Kenneth Myhra <kennethmyhra@gmail.com> | 2023-02-03 21:50:24 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-02-12 00:18:09 +0000 |
commit | 3bc5fcaccc743d33505bff69165cb619a964cf64 (patch) | |
tree | 62b7c596ac41b3bc0e52c7d349ddf30f8d11a861 /Userland/Libraries/LibWeb/HTML/HTMLFormElement.h | |
parent | 2363c2a572f4ce66b8e2cf8f0a11cecc5f97ad97 (diff) | |
download | serenity-3bc5fcaccc743d33505bff69165cb619a964cf64.zip |
LibWeb: Add accessor function HTMLFormElement::constructing_entry_list()
Each form element has a constructing entry list boolean, initially
false.
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLFormElement.h')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/HTMLFormElement.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLFormElement.h b/Userland/Libraries/LibWeb/HTML/HTMLFormElement.h index b9440be779..21d828dea5 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLFormElement.h +++ b/Userland/Libraries/LibWeb/HTML/HTMLFormElement.h @@ -1,5 +1,6 @@ /* * Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org> + * Copyright (c) 2023, Kenneth Myhra <kennethmyhra@serenityos.org> * * SPDX-License-Identifier: BSD-2-Clause */ @@ -42,6 +43,10 @@ public: // https://www.w3.org/TR/html-aria/#el-form virtual Optional<ARIA::Role> default_role() const override { return ARIA::Role::form; } + // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#constructing-entry-list + bool constructing_entry_list() const { return m_constructing_entry_list; } + void set_constructing_entry_list(bool value) { m_constructing_entry_list = value; } + private: HTMLFormElement(DOM::Document&, DOM::QualifiedName); @@ -58,6 +63,8 @@ private: Vector<JS::GCPtr<HTMLElement>> m_associated_elements; JS::GCPtr<DOM::HTMLCollection> mutable m_elements; + + bool m_constructing_entry_list { false }; }; } |