mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Implement the HTMLInputElement pattern attribute
This commit is contained in:
committed by
Andreas Kling
parent
5651701f31
commit
3fd1538191
Notes:
github-actions[bot]
2025-02-27 20:47:10 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/3fd1538191b Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3716 Reviewed-by: https://github.com/shannonbooth
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user