LibWeb: Implement the HTMLInputElement pattern attribute

This commit is contained in:
Tim Ledbetter 2025-02-27 10:13:52 +00:00 committed by Andreas Kling
parent 5651701f31
commit 3fd1538191
Notes: github-actions[bot] 2025-02-27 20:47:10 +00:00
11 changed files with 332 additions and 23 deletions

View file

@ -9,6 +9,7 @@
#pragma once
#include <LibRegex/Regex.h>
#include <LibWeb/DOM/DocumentLoadEventDelayer.h>
#include <LibWeb/DOM/Text.h>
#include <LibWeb/FileAPI/FileList.h>
@ -215,6 +216,8 @@ public:
bool select_applies() const;
bool selection_or_range_applies() const;
bool selection_direction_applies() const;
bool pattern_applies() const;
bool multiple_applies() const;
bool has_selectable_text() const;
bool supports_a_picker() const;
@ -345,6 +348,8 @@ private:
GC::Ptr<SharedResourceRequest> m_resource_request;
SelectedCoordinate m_selected_coordinate;
Optional<Regex<ECMA262>> compiled_pattern_regular_expression() const;
Optional<DOM::DocumentLoadEventDelayer> m_load_event_delayer;
// https://html.spec.whatwg.org/multipage/input.html#dom-input-indeterminate