mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 10:01:13 +09:00
LibWeb: Add accessor function HTMLFormElement::constructing_entry_list()
Each form element has a constructing entry list boolean, initially false.
This commit is contained in:
parent
2363c2a572
commit
3bc5fcaccc
Notes:
sideshowbarker
2024-07-18 03:20:18 +09:00
Author: https://github.com/kennethmyhra
Commit: 3bc5fcaccc
Pull-request: https://github.com/SerenityOS/serenity/pull/16356
Reviewed-by: https://github.com/davidot
Reviewed-by: https://github.com/linusg ✅
1 changed files with 7 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
|
* Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
|
||||||
|
* Copyright (c) 2023, Kenneth Myhra <kennethmyhra@serenityos.org>
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: BSD-2-Clause
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
*/
|
*/
|
||||||
|
@ -42,6 +43,10 @@ public:
|
||||||
// https://www.w3.org/TR/html-aria/#el-form
|
// https://www.w3.org/TR/html-aria/#el-form
|
||||||
virtual Optional<ARIA::Role> default_role() const override { return ARIA::Role::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:
|
private:
|
||||||
HTMLFormElement(DOM::Document&, DOM::QualifiedName);
|
HTMLFormElement(DOM::Document&, DOM::QualifiedName);
|
||||||
|
|
||||||
|
@ -58,6 +63,8 @@ private:
|
||||||
Vector<JS::GCPtr<HTMLElement>> m_associated_elements;
|
Vector<JS::GCPtr<HTMLElement>> m_associated_elements;
|
||||||
|
|
||||||
JS::GCPtr<DOM::HTMLCollection> mutable m_elements;
|
JS::GCPtr<DOM::HTMLCollection> mutable m_elements;
|
||||||
|
|
||||||
|
bool m_constructing_entry_list { false };
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue