mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-04 15:19:42 +00:00
LibWeb: Implement setCustomValidity IDL attribute
This commit is contained in:
parent
0926720c2a
commit
a8004a77bb
Notes:
github-actions[bot]
2025-02-18 17:18:11 +00:00
Author: https://github.com/Psychpsyo
Commit: a8004a77bb
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3587
Reviewed-by: https://github.com/ADKaster ✅
12 changed files with 29 additions and 24 deletions
|
@ -125,6 +125,9 @@ public:
|
|||
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-cva-validity
|
||||
GC::Ref<ValidityState const> validity() const;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-cva-setcustomvalidity
|
||||
void set_custom_validity(String& error);
|
||||
|
||||
protected:
|
||||
FormAssociatedElement() = default;
|
||||
virtual ~FormAssociatedElement() = default;
|
||||
|
@ -144,6 +147,9 @@ private:
|
|||
|
||||
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#parser-inserted-flag
|
||||
bool m_parser_inserted { false };
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#custom-validity-error-message
|
||||
String m_custom_validity_error_message;
|
||||
};
|
||||
|
||||
enum class SelectionSource {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue