LibWeb: Implement the HTMLInputElement.list attribute

This returns the `HTMLDataListElement` pointed to by the `list`
content attribute.
This commit is contained in:
Tim Ledbetter 2025-03-03 15:23:48 +00:00 committed by Tim Ledbetter
parent a37315da87
commit 6178557a07
Notes: github-actions[bot] 2025-03-09 15:11:49 +00:00
7 changed files with 164 additions and 1 deletions

View file

@ -106,6 +106,8 @@ public:
bool indeterminate() const { return m_indeterminate; }
void set_indeterminate(bool);
GC::Ptr<HTMLDataListElement const> list() const;
void did_pick_color(Optional<Color> picked_color, ColorPickerUpdateState state);
enum class MultipleHandling {
@ -356,6 +358,8 @@ private:
Optional<Regex<ECMA262>> compiled_pattern_regular_expression() const;
Optional<GC::Ref<HTMLDataListElement const>> suggestions_source_element() const;
Optional<DOM::DocumentLoadEventDelayer> m_load_event_delayer;
// https://html.spec.whatwg.org/multipage/input.html#dom-input-indeterminate