mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-04 10:18:51 +00:00
LibWeb: Implement the HTMLInputElement
pattern attribute
This commit is contained in:
parent
5651701f31
commit
3fd1538191
Notes:
github-actions[bot]
2025-02-27 20:47:10 +00:00
Author: https://github.com/tcl3
Commit: 3fd1538191
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3716
Reviewed-by: https://github.com/shannonbooth
11 changed files with 332 additions and 23 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue